From f76ddd841ca02ca35432f6de569f8c430a9713b1 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Fri, 3 May 2024 21:33:44 +0400 Subject: [PATCH] Stop modifying application-wide QFont object --- ui/style/style_core_font.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/ui/style/style_core_font.cpp b/ui/style/style_core_font.cpp index 39f98a1..626ba05 100644 --- a/ui/style/style_core_font.cpp +++ b/ui/style/style_core_font.cpp @@ -16,7 +16,6 @@ #include #include #include -#include void style_InitFontsResource() { #ifdef Q_OS_MAC // Use resources from the .app bundle on macOS. @@ -399,10 +398,6 @@ void StartFonts() { QFont::insertSubstitutions(name, list); #endif // Q_OS_MAC #endif // !LIB_UI_USE_PACKAGED_FONTS - - auto appFont = QApplication::font(); - appFont.setStyleStrategy(QFont::PreferQuality); - QApplication::setFont(appFont); } void DestroyFonts() {