--- a/eric7/QScintilla/Lexers/LexerPygments.py Sun May 16 11:43:59 2021 +0200 +++ b/eric7/QScintilla/Lexers/LexerPygments.py Sun May 16 20:07:24 2021 +0200 @@ -15,7 +15,7 @@ ) from pygments.util import ClassNotFound -from PyQt5.QtGui import QColor, QFont +from PyQt6.QtGui import QColor, QFont from QScintilla.Lexers.LexerContainer import LexerContainer @@ -390,22 +390,22 @@ if style in [PYGMENTS_COMMENT, PYGMENTS_PREPROCESSOR, PYGMENTS_MULTILINECOMMENT]: if Utilities.isWindowsPlatform(): - f = QFont("Comic Sans MS", 9) + f = QFont(["Comic Sans MS"], 9) elif Utilities.isMacPlatform(): - f = QFont("Courier", 11) + f = QFont(["Courier"], 11) else: - f = QFont("Bitstream Vera Serif", 9) + f = QFont(["Bitstream Vera Serif"], 9) if style == PYGMENTS_PREPROCESSOR: f.setItalic(True) return f if style in [PYGMENTS_STRING, PYGMENTS_CHAR]: if Utilities.isWindowsPlatform(): - return QFont("Comic Sans MS", 10) + return QFont(["Comic Sans MS"], 10) elif Utilities.isMacPlatform(): - f = QFont("Courier", 11) + f = QFont(["Courier"], 11) else: - return QFont("Bitstream Vera Serif", 10) + return QFont(["Bitstream Vera Serif"], 10) if style in [PYGMENTS_KEYWORD, PYGMENTS_OPERATOR, PYGMENTS_WORD, PYGMENTS_BUILTIN, PYGMENTS_ATTRIBUTE, PYGMENTS_FUNCTION,