mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
Change font of debug console to Consolas (#3606)
This commit is contained in:
parent
6524a24a89
commit
f345517dcc
1 changed files with 4 additions and 2 deletions
|
@ -72,8 +72,10 @@ class DebugConsole(QDialog):
|
|||
qconnect(self._script.currentIndexChanged, self._on_script_change)
|
||||
|
||||
def _setup_text_edits(self):
|
||||
font = QFontDatabase.systemFont(QFontDatabase.SystemFont.FixedFont)
|
||||
font.setPointSize(self._text.font().pointSize() + 1)
|
||||
font = QFont("Consolas")
|
||||
if not font.exactMatch():
|
||||
font = QFontDatabase.systemFont(QFontDatabase.SystemFont.FixedFont)
|
||||
font.setPointSize(self._text.font().pointSize())
|
||||
self._text.setFont(font)
|
||||
self._log.setFont(font)
|
||||
|
||||
|
|
Loading…
Reference in a new issue