File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 3
3
/***************************************************************************
4
4
Python Conosle for QGIS
5
5
-------------------
6
- begin : 2012-09-xx
6
+ begin : 2012-09-10
7
7
copyright : (C) 2012 by Salvatore Larosa
8
8
email : lrssvtml (at) gmail (dot) com
9
9
***************************************************************************/
Original file line number Diff line number Diff line change 3
3
/***************************************************************************
4
4
Python Conosle for QGIS
5
5
-------------------
6
- begin : 2012-09-xx
6
+ begin : 2012-09-10
7
7
copyright : (C) 2012 by Salvatore Larosa
8
8
email : lrssvtml (at) gmail (dot) com
9
9
***************************************************************************/
@@ -145,9 +145,13 @@ def commandConsole(self, command):
145
145
def setLexers (self , lexer ):
146
146
if lexer :
147
147
font = QFont ()
148
- font .setFamily ('Courier New ' ) ## Courier New
148
+ font .setFamily ('Mono ' ) ## Courier New
149
149
font .setFixedPitch (True )
150
- font .setPointSize (13 )
150
+ ## check platform for font size
151
+ if sys .platform .startswith ('darwin' ):
152
+ font .setPointSize (13 )
153
+ else :
154
+ font .setPointSize (10 )
151
155
self .setFont (font )
152
156
self .setMarginsFont (font )
153
157
self .lexer = QsciLexerPython ()
You can’t perform that action at this time.
0 commit comments