From 2a325ae4ccfa656fc8fdec39407795e860d134e7 Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Sun, 7 Feb 2021 21:43:32 +0100 Subject: [PATCH] GUI font on Windows should default to Arial first, and fall back to Cantarell --- nw/gui/theme.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/nw/gui/theme.py b/nw/gui/theme.py index 8aa0c1fe..1b3c1263 100644 --- a/nw/gui/theme.py +++ b/nw/gui/theme.py @@ -208,9 +208,12 @@ class GuiTheme: theFont = QFont() if self.mainConf.guiFont not in self.guiFontDB.families(): if self.mainConf.osWindows: - # On Windows, default to Cantarell provided by novelWriter - theFont.setFamily("Cantarell") - theFont.setPointSize(11) + if "Arial" in self.guiFontDB.families(): + theFont.setFamily("Arial") + else: + # On Windows, fall back to Cantarell provided by novelWriter + theFont.setFamily("Cantarell") + theFont.setPointSize(10) else: theFont = self.guiFontDB.systemFont(QFontDatabase.GeneralFont) self.mainConf.guiFont = theFont.family()