Skip to content

Commit

Permalink
Merge pull request #310 from slarosa/master
Browse files Browse the repository at this point in the history
Add default font-family and size to output area - PyQGIS Console
  • Loading branch information
brushtyler committed Oct 30, 2012
2 parents f68b688 + 47da0c0 commit 36f8f88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/console_help.py
Expand Up @@ -52,5 +52,5 @@ def __init__(self, parent):
lang=" + locale \
+ "&pkgDir=" + qgisDataDir

url = QtCore.QUrl(filename)
url = QUrl(filename)
self.webView.load(url)
4 changes: 2 additions & 2 deletions python/console_output.py
Expand Up @@ -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)
Expand Down

0 comments on commit 36f8f88

Please sign in to comment.