Skip to content

Commit 1dc7ce9

Browse files
committedSep 11, 2012
check platform for font size
1 parent 07735b7 commit 1dc7ce9

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed
 

‎python/console.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/***************************************************************************
44
Python Conosle for QGIS
55
-------------------
6-
begin : 2012-09-xx
6+
begin : 2012-09-10
77
copyright : (C) 2012 by Salvatore Larosa
88
email : lrssvtml (at) gmail (dot) com
99
***************************************************************************/

‎python/console_sci.py

100644100755
Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/***************************************************************************
44
Python Conosle for QGIS
55
-------------------
6-
begin : 2012-09-xx
6+
begin : 2012-09-10
77
copyright : (C) 2012 by Salvatore Larosa
88
email : lrssvtml (at) gmail (dot) com
99
***************************************************************************/
@@ -145,9 +145,13 @@ def commandConsole(self, command):
145145
def setLexers(self, lexer):
146146
if lexer:
147147
font = QFont()
148-
font.setFamily('Courier New') ## Courier New
148+
font.setFamily('Mono') ## Courier New
149149
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)
151155
self.setFont(font)
152156
self.setMarginsFont(font)
153157
self.lexer = QsciLexerPython()

0 commit comments

Comments
 (0)
Please sign in to comment.