Skip to content

Commit c57286a

Browse files
authored
Use system monospace font.
Avoids hard coding Ubuntu Mono for our proprietary software friends.
1 parent 7df3335 commit c57286a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

QCodeEditor.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,9 @@ def __init__(self, DISPLAY_LINE_NUMBERS=True, HIGHLIGHT_CURRENT_LINE=True,
218218
SyntaxHighlighter=Pylighter, lang="python", font_size=11, *args):
219219
super(QCodeEditor, self).__init__()
220220

221-
self.setFont(QFont("Ubuntu Mono", font_size))
221+
font = getMonospaceFont(self)
222+
font.setPointSize(font_size)
223+
self.setFont(font)
222224
self.setLineWrapMode(QPlainTextEdit.NoWrap)
223225

224226
self.DISPLAY_LINE_NUMBERS = DISPLAY_LINE_NUMBERS

0 commit comments

Comments
 (0)