Skip to content

Commit

Permalink
Use Segoe UI font on Windows.
Browse files Browse the repository at this point in the history
Qt uses "MS Shell Dlg 2" as the default font, which resolves to
Tahoma and not Segoe UI, which is the actual Windows 10 default font.

See QTBUG-58610
  • Loading branch information
phoerious committed May 21, 2020
1 parent a1b4a3f commit bcb64a2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/core/Bootstrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ namespace Bootstrap

setupSearchPaths();
applyEarlyQNetworkAccessManagerWorkaround();
Translator::installTranslators();
}

/**
Expand All @@ -84,6 +83,15 @@ namespace Bootstrap
void bootstrapApplication()
{
bootstrap();
Translator::installTranslators();

#ifdef Q_OS_WIN
// Qt on Windows uses "MS Shell Dlg 2" as the default font for many widgets, which resolves
// to Tahoma 8pt, whereas the correct font would be "Segoe UI" 9pt.
// Apparently, some widgets are already using the correct font. Thanks, MuseScore for this neat fix!
QApplication::setFont(QApplication::font("QMessageBox"));
#endif

MessageBox::initializeButtonDefs();

#ifdef Q_OS_MACOS
Expand Down

0 comments on commit bcb64a2

Please sign in to comment.