From ad21282379f09e4e1d2fa9d1f87609b71856d9b7 Mon Sep 17 00:00:00 2001 From: spycrab Date: Sat, 5 May 2018 11:56:42 +0200 Subject: [PATCH] Qt/Win32: Force Segoe UI --- Source/Core/DolphinQt2/Main.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Source/Core/DolphinQt2/Main.cpp b/Source/Core/DolphinQt2/Main.cpp index 047618df5c..4dca310148 100644 --- a/Source/Core/DolphinQt2/Main.cpp +++ b/Source/Core/DolphinQt2/Main.cpp @@ -93,6 +93,17 @@ int main(int argc, char* argv[]) QApplication app(argc, argv); +#ifdef _WIN32 + // Force the default font to Segoe UI on Windows + QFont font = QApplication::font(); + font.setFamily(QStringLiteral("Segoe UI")); + + // The default font size is a bit too small + font.setPointSize(QFontInfo(font).pointSize() * 1.2); + + QApplication::setFont(font); +#endif + auto parser = CommandLineParse::CreateParser(CommandLineParse::ParserOptions::IncludeGUIOptions); const optparse::Values& options = CommandLineParse::ParseArguments(parser.get(), argc, argv); const std::vector args = parser->args();