From 0759ead9b6946041ba5c4996d023ce7944bb35c5 Mon Sep 17 00:00:00 2001 From: Techjar Date: Tue, 15 Sep 2020 04:33:30 -0400 Subject: Qt: Use better method of getting default monospace font This should give us a nicer font on Windows, while also not severely impacting the existing behavior on Linux. --- Source/Core/DolphinQt/Config/LogWidget.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Source/Core/DolphinQt/Config/LogWidget.cpp') diff --git a/Source/Core/DolphinQt/Config/LogWidget.cpp b/Source/Core/DolphinQt/Config/LogWidget.cpp index 577916e67a..c7b3a3330d 100644 --- a/Source/Core/DolphinQt/Config/LogWidget.cpp +++ b/Source/Core/DolphinQt/Config/LogWidget.cpp @@ -119,8 +119,7 @@ void LogWidget::UpdateFont() case 0: // Default font break; case 1: // Monospace font - f = QFont(QStringLiteral("Monospace")); - f.setStyleHint(QFont::TypeWriter); + f = QFont(QFontDatabase::systemFont(QFontDatabase::FixedFont).family()); break; case 2: // Debugger font f = Settings::Instance().GetDebugFont(); -- cgit v1.2.3