Skip to content

Commit

Permalink
Qt/Win32: Force Segoe UI
Browse files Browse the repository at this point in the history
  • Loading branch information
spycrab committed May 5, 2018
1 parent 31efec6 commit ad21282
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Source/Core/DolphinQt2/Main.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -93,6 +93,17 @@ int main(int argc, char* argv[])


QApplication app(argc, 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); auto parser = CommandLineParse::CreateParser(CommandLineParse::ParserOptions::IncludeGUIOptions);
const optparse::Values& options = CommandLineParse::ParseArguments(parser.get(), argc, argv); const optparse::Values& options = CommandLineParse::ParseArguments(parser.get(), argc, argv);
const std::vector<std::string> args = parser->args(); const std::vector<std::string> args = parser->args();
Expand Down

0 comments on commit ad21282

Please sign in to comment.