Merge pull request #10544 from AdmiralCurtiss/default-font-size-workaround

Qt: Set font size for default debug font.
This commit is contained in:
JosJuice 2022-04-07 20:59:17 +02:00 committed by GitHub
commit 6a326a9f73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -606,6 +606,7 @@ void Settings::SetDebugFont(QFont font)
QFont Settings::GetDebugFont() const
{
QFont default_font = QFont(QFontDatabase::systemFont(QFontDatabase::FixedFont).family());
default_font.setPointSizeF(9.0);
return GetQSettings().value(QStringLiteral("debugger/font"), default_font).value<QFont>();
}