Little change to the Pygments lexer to adjust some default fonts on macOS.

Tue, 28 Feb 2017 19:10:39 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 28 Feb 2017 19:10:39 +0100
changeset 5571
2e4084a51721
parent 5567
f68d74cd8210
child 5572
c6eec77019d2

Little change to the Pygments lexer to adjust some default fonts on macOS.

QScintilla/Lexers/LexerPygments.py file | annotate | diff | comparison | revisions
--- a/QScintilla/Lexers/LexerPygments.py	Sun Feb 26 15:57:02 2017 +0100
+++ b/QScintilla/Lexers/LexerPygments.py	Tue Feb 28 19:10:39 2017 +0100
@@ -351,6 +351,8 @@
                      PYGMENTS_MULTILINECOMMENT]:
             if Utilities.isWindowsPlatform():
                 f = QFont("Comic Sans MS", 9)
+            elif Utilities.isMacPlatform():
+                f = QFont("Courier", 11)
             else:
                 f = QFont("Bitstream Vera Serif", 9)
             if style == PYGMENTS_PREPROCESSOR:
@@ -360,6 +362,8 @@
         if style in [PYGMENTS_STRING, PYGMENTS_CHAR]:
             if Utilities.isWindowsPlatform():
                 return QFont("Comic Sans MS", 10)
+            elif Utilities.isMacPlatform():
+                f = QFont("Courier", 11)
             else:
                 return QFont("Bitstream Vera Serif", 10)
         

eric ide

mercurial