Skip to content
Permalink
Browse files

check platform for font size

  • Loading branch information
slarosa committed Sep 11, 2012
1 parent 07735b7 commit 1dc7ce997b2d8ef3f033f7c8b5cb3982ef06c551
Showing with 8 additions and 4 deletions.
  1. +1 −1 python/console.py
  2. +7 −3 python/console_sci.py
@@ -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
***************************************************************************/
10 python/console_sci.py 100644 → 100755
@@ -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
***************************************************************************/
@@ -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()

0 comments on commit 1dc7ce9

Please sign in to comment.
You can’t perform that action at this time.