We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63454e9 commit 7b4e6a1Copy full SHA for 7b4e6a1
1 file changed
src/Font.cpp
@@ -14,8 +14,17 @@ QFont fromString(const QString &fontName) {
14
QFont font;
15
font.fromString(fontName);
16
font.setStyleName(QString());
17
-#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
+#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
18
+ QT_WARNING_PUSH
19
+ QT_WARNING_DISABLE_DEPRECATED
20
+ // NOTE(eteran): unfortunately, this line seems to matter
21
+ // despite being marked as deprecated, and Qt doesn't suggest
22
+ // a meaningful alternative
23
font.setStyleStrategy(QFont::ForceIntegerMetrics);
24
+ QT_WARNING_POP
25
+#else
26
+ font.setHintingPreference(QFont::PreferFullHinting);
27
+ font.setStyleStrategy(QFont::NoFontMerging);
28
#endif
29
return font;
30
}
0 commit comments