Set ss03 feature for better 'I' with Open Sans

This commit is contained in:
Ilya Fedin 2024-04-18 20:41:22 +04:00 committed by John Preston
parent eab785a1c8
commit 70e61c8ab8

View file

@ -51,6 +51,9 @@ QFont ResolveFont(const QString &familyOverride, uint32 flags, int size) {
result = Database.font(custom.family, custom.style, point);
} else {
result.setFamily(GetFontOverride(flags));
#if QT_VERSION >= QT_VERSION_CHECK(6, 7, 0)
result.setFeature("ss03", true);
#endif // Qt >= 6.7.0
if (bold) {
#ifdef LIB_UI_USE_PACKAGED_FONTS
result.setWeight(QFont::DemiBold);