Skip to content
Permalink
Browse files

Merge pull request #310 from slarosa/master

Add default font-family and size to output area - PyQGIS Console
  • Loading branch information
brushtyler committed Oct 30, 2012
2 parents f68b688 + 47da0c0 commit 36f8f889b2cb36e1df5d33ef65b63e536d6bd7ea
Showing with 3 additions and 3 deletions.
  1. +1 −1 python/console_help.py
  2. +2 −2 python/console_output.py
@@ -52,5 +52,5 @@ def __init__(self, parent):
lang=" + locale \
+ "&pkgDir=" + qgisDataDir

url = QtCore.QUrl(filename)
url = QUrl(filename)
self.webView.load(url)
@@ -121,8 +121,8 @@ def setLexers(self):
self.lexer = QsciLexerPython()

settings = QSettings()
loadFont = settings.value("pythonConsole/fontfamilytext").toString()
fontSize = settings.value("pythonConsole/fontsize").toInt()[0]
loadFont = settings.value("pythonConsole/fontfamilytext", "Monospace").toString()
fontSize = settings.value("pythonConsole/fontsize", 10).toInt()[0]
font = QFont(loadFont)
font.setFixedPitch(True)
font.setPointSize(fontSize)

0 comments on commit 36f8f88

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