Fix font handling in manuscript tool
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user