summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt2/Main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/DolphinQt2/Main.cpp')
-rw-r--r--Source/Core/DolphinQt2/Main.cpp11
1 files changed, 11 insertions, 0 deletions
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<std::string> args = parser->args();