From 3ed5ae1c6beafddfa8d6fd8a6515dcdb5d534c7c Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Thu, 17 Nov 2022 16:41:04 +0100 Subject: Correct system monospace font selection --- muddle/gui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/muddle/gui.py b/muddle/gui.py index d3bdebf..8f096f3 100644 --- a/muddle/gui.py +++ b/muddle/gui.py @@ -24,6 +24,7 @@ from PyQt6 import uic from PyQt6.QtGui import ( QFileSystemModel, QFont, + QFontDatabase, QIcon, QStandardItem, QStandardItemModel, @@ -372,8 +373,7 @@ class MuddleWindow(QMainWindow): logging.getLogger("muddle").addHandler(self.loghandler) ## Set font to be monospaced - f = QFont("_monospace") - f.setStyleHint(QFont.StyleHint.Monospace) + f = QFontDatabase.systemFont(QFontDatabase.SystemFont.FixedFont) self.logsTab = self.findChild(QPlainTextEdit, "logsTab") self.logsTab.setFont(f) -- cgit v1.2.1