Fix font handling in manuscript tool

This commit is contained in:
Veronica Berglyd Olsen committed 2024-05-20 17:13:10 +02:00
1 parent 774437f7bb
commit 0b999bd726
6 files changed
+19 -32

No files matched your search

+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"))