summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorspycrab <spycrab@users.noreply.github.com>2018-05-05 11:56:42 +0200
committerspycrab <spycrab@users.noreply.github.com>2018-05-05 12:41:56 +0200
commitad21282379f09e4e1d2fa9d1f87609b71856d9b7 (patch)
treec2f79c55dda11d74125258726da2b81bb18b1e85 /Source
parent31efec623a4caabb02dfa9c75cd194ad115a1989 (diff)
Qt/Win32: Force Segoe UI
Diffstat (limited to 'Source')
-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();