Skip to content

Commit 1d92c08

Browse files
committedJan 29, 2016
gui/log: use QFontDatabase for fixed font
1 parent f9a6ba1 commit 1d92c08

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎artiq/gui/log.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ def __init__(self, init):
2222
timer.timeout.connect(self.timer_tick)
2323
timer.start(100)
2424

25-
self.fixed_font = QtGui.QFont()
26-
self.fixed_font.setFamily("Monospace")
25+
self.fixed_font = QtGui.QFontDatabase.systemFont(QtGui.QFontDatabase.FixedFont)
2726

2827
self.white = QtGui.QBrush(QtGui.QColor(255, 255, 255))
2928
self.black = QtGui.QBrush(QtGui.QColor(0, 0, 0))

0 commit comments

Comments
 (0)
Please sign in to comment.