From 1d92c0874e498ea5df4134d79700101e807f4e55 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 29 Jan 2016 23:21:22 +0100 Subject: [PATCH] gui/log: use QFontDatabase for fixed font --- artiq/gui/log.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/artiq/gui/log.py b/artiq/gui/log.py index c6d9c4706..460441c07 100644 --- a/artiq/gui/log.py +++ b/artiq/gui/log.py @@ -22,8 +22,7 @@ class Model(QtCore.QAbstractTableModel): 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))