From 6192a507ee840e875a51b5635878ee769dc9f83d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=A4rkl?= Date: Mon, 20 Nov 2017 21:20:31 +0100 Subject: [PATCH] Use system monospace font by default --- src/utils/Configuration.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/utils/Configuration.cpp b/src/utils/Configuration.cpp index 47703a8f..adf54a8d 100644 --- a/src/utils/Configuration.cpp +++ b/src/utils/Configuration.cpp @@ -1,6 +1,7 @@ #include "Configuration.h" #include #include +#include Configuration* Configuration::mPtr = nullptr; @@ -180,7 +181,9 @@ void Configuration::loadDarkTheme() const QFont Configuration::getFont() const { - QFont font = s.value("font", QFont("Monospace", 12)).value(); + //QFont font = s.value("font", QFont("Monospace", 12)).value(); + //QFont font = QFont("Monospace", 12); + QFont font = QFontDatabase::systemFont(QFontDatabase::FixedFont); return font; }