GUI font on Windows should default to Arial first, and fall back to Cantarell
This commit is contained in:
+6
-3
@@ -208,9 +208,12 @@ class GuiTheme:
|
|||||||
theFont = QFont()
|
theFont = QFont()
|
||||||
if self.mainConf.guiFont not in self.guiFontDB.families():
|
if self.mainConf.guiFont not in self.guiFontDB.families():
|
||||||
if self.mainConf.osWindows:
|
if self.mainConf.osWindows:
|
||||||
# On Windows, default to Cantarell provided by novelWriter
|
if "Arial" in self.guiFontDB.families():
|
||||||
theFont.setFamily("Cantarell")
|
theFont.setFamily("Arial")
|
||||||
theFont.setPointSize(11)
|
else:
|
||||||
|
# On Windows, fall back to Cantarell provided by novelWriter
|
||||||
|
theFont.setFamily("Cantarell")
|
||||||
|
theFont.setPointSize(10)
|
||||||
else:
|
else:
|
||||||
theFont = self.guiFontDB.systemFont(QFontDatabase.GeneralFont)
|
theFont = self.guiFontDB.systemFont(QFontDatabase.GeneralFont)
|
||||||
self.mainConf.guiFont = theFont.family()
|
self.mainConf.guiFont = theFont.family()
|
||||||
|
|||||||
Reference in New Issue
Block a user