Skip to content

Commit

Permalink
gui/log: use QFontDatabase for fixed font
Browse files Browse the repository at this point in the history
sbourdeauducq committed Jan 29, 2016
1 parent f9a6ba1 commit 1d92c08
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions artiq/gui/log.py
Original file line number Diff line number Diff line change
@@ -22,8 +22,7 @@ def __init__(self, init):
timer.timeout.connect(self.timer_tick)
timer.start(100)

self.fixed_font = QtGui.QFont()
self.fixed_font.setFamily("Monospace")
self.fixed_font = QtGui.QFontDatabase.systemFont(QtGui.QFontDatabase.FixedFont)

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

0 comments on commit 1d92c08

Please sign in to comment.