Rename tokenizer setFont to setTextFont

This commit is contained in:
Veronica Berglyd Olsen
2024-11-26 00:40:09 +01:00
parent 05b1fdd7f2
commit 2808c36753
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -218,7 +218,7 @@ class NWBuildDocument:
textFont = QFont(CONFIG.textFont)
textFont.fromString(self._build.getStr("format.textFont"))
bldObj.setFont(textFont)
bldObj.setTextFont(textFont)
bldObj.setLanguage(self._project.data.language)
bldObj.setPartitionFormat(
+1 -1
View File
@@ -302,7 +302,7 @@ class Tokenizer(ABC):
self._sceneStyle |= BlockFmt.PBB if pageBreak else BlockFmt.NONE
return
def setFont(self, font: QFont) -> None:
def setTextFont(self, font: QFont) -> None:
"""Set the build font."""
self._textFont = font
return
+1 -1
View File
@@ -219,7 +219,7 @@ class GuiDocViewer(QTextBrowser):
qDoc = ToQTextDocument(SHARED.project)
qDoc.setJustify(CONFIG.doJustify)
qDoc.setDialogHighlight(True)
qDoc.setFont(CONFIG.textFont)
qDoc.setTextFont(CONFIG.textFont)
qDoc.setTheme(self._docTheme)
qDoc.initDocument()
qDoc.setKeywords(True)
+1 -1
View File
@@ -110,7 +110,7 @@ def testFmtToken_Setters(mockGUI):
tokens.setSceneFormat(f"S: {nwHeadFmt.TITLE}", True)
tokens.setHardSceneFormat(f"H: {nwHeadFmt.TITLE}", True)
tokens.setSectionFormat(f"X: {nwHeadFmt.TITLE}", True)
tokens.setFont(QFont("Monospace", 10))
tokens.setTextFont(QFont("Monospace", 10))
tokens.setLineHeight(2.0)
tokens.setBlockIndent(6.0)
tokens.setJustify(True)