Skip to content

Commit

Permalink
check platform for font size
Browse files Browse the repository at this point in the history
  • Loading branch information
slarosa committed Sep 11, 2012
1 parent 07735b7 commit 1dc7ce9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion python/console.py
Expand Up @@ -3,7 +3,7 @@
/***************************************************************************
Python Conosle for QGIS
-------------------
begin : 2012-09-xx
begin : 2012-09-10
copyright : (C) 2012 by Salvatore Larosa
email : lrssvtml (at) gmail (dot) com
***************************************************************************/
Expand Down
10 changes: 7 additions & 3 deletions python/console_sci.py 100644 → 100755
Expand Up @@ -3,7 +3,7 @@
/***************************************************************************
Python Conosle for QGIS
-------------------
begin : 2012-09-xx
begin : 2012-09-10
copyright : (C) 2012 by Salvatore Larosa
email : lrssvtml (at) gmail (dot) com
***************************************************************************/
Expand Down Expand Up @@ -145,9 +145,13 @@ def commandConsole(self, command):
def setLexers(self, lexer):
if lexer:
font = QFont()
font.setFamily('Courier New') ## Courier New
font.setFamily('Mono') ## Courier New
font.setFixedPitch(True)
font.setPointSize(13)
## check platform for font size
if sys.platform.startswith('darwin'):
font.setPointSize(13)
else:
font.setPointSize(10)
self.setFont(font)
self.setMarginsFont(font)
self.lexer = QsciLexerPython()
Expand Down

0 comments on commit 1dc7ce9

Please sign in to comment.