GUI font on Windows should default to Arial first, and fall back to Cantarell

This commit is contained in:
Veronica K. B. Olsen
2021-02-07 21:43:32 +01:00
parent b3fb020dfa
commit 2a325ae4cc
+6 -3
View File
@@ -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()