Save all font info for GUI font

This commit is contained in:
Veronica Berglyd Olsen
2024-05-20 16:12:27 +02:00
parent 0bc8a63ccf
commit c0673b8128
5 changed files with 83 additions and 79 deletions
+2
View File
@@ -217,6 +217,7 @@ def main(sysArgs: list | None = None) -> GuiMain | None:
# Import GUI (after dependency checks), and launch
from novelwriter.guimain import GuiMain
if testMode:
CONFIG.loadConfig()
nwGUI = GuiMain()
return nwGUI
@@ -232,6 +233,7 @@ def main(sysArgs: list | None = None) -> GuiMain | None:
sys.excepthook = exceptionHandler
# Run Config steps that require the QApplication
CONFIG.loadConfig()
CONFIG.initLocalisation(nwApp)
CONFIG.setTextFont(CONFIG.textFont, CONFIG.textSize) # Makes sure these are valid