Skip to content

Commit

Permalink
Stop modifying application-wide QFont object
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-fedin authored and john-preston committed May 4, 2024
1 parent 7e9dc6e commit f76ddd8
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions ui/style/style_core_font.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#include <QtCore/QVector>
#include <QtGui/QFontInfo>
#include <QtGui/QFontDatabase>
#include <QtWidgets/QApplication>

void style_InitFontsResource() {
#ifdef Q_OS_MAC // Use resources from the .app bundle on macOS.
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit f76ddd8

Please sign in to comment.