Fix font handling in manuscript tool

This commit is contained in:
Veronica Berglyd Olsen
2024-05-20 17:13:10 +02:00
parent 774437f7bb
commit 0b999bd726
6 changed files with 19 additions and 32 deletions
+1 -1
View File
@@ -787,7 +787,7 @@ class _PreviewWidget(QTextBrowser):
self._updateDocMargins()
self._updateBuildAge()
self.setTextFont(CONFIG.textFont, CONFIG.textSize)
self.setTextFont(CONFIG.textFont.family(), CONFIG.textFont.pointSize())
# Age Timer
self.ageTimer = QTimer(self)
+1 -1
View File
@@ -1175,7 +1175,7 @@ class _FormatTab(NScrollableForm):
"""Populate the widgets."""
textFont = self._build.getStr("format.textFont")
if not textFont:
textFont = str(CONFIG.textFont)
textFont = str(CONFIG.textFont.family())
self.textFont.setText(textFont)
self.textSize.setValue(self._build.getInt("format.textSize"))