More pyqt6 nonsense

This commit is contained in:
Kovid Goyal 2021-12-12 20:43:27 +05:30
parent a4b1c8286c
commit 79013ef7d7
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ class TemplateHighlighter(QSyntaxHighlighter):
config["%sfontbold" % name] = bold
config["%sfontitalic" % name] = italic
base_format = QTextCharFormat()
base_format.setFontFamily(config["fontfamily"])
base_format.setFontFamilies([config["fontfamily"]])
config["fontsize"] = size
base_format.setFontPointSize(config["fontsize"])

View File

@ -880,7 +880,7 @@ class PythonHighlighter(QSyntaxHighlighter): # {{{
@classmethod
def initializeFormats(cls):
baseFormat = QTextCharFormat()
baseFormat.setFontFamily('monospace')
baseFormat.setFontFamilies(['monospace'])
p = QApplication.instance().palette()
for name, color, bold, italic in (
("normal", None, False, False),