From 70e61c8ab89b9ad87ece4b45aa81e9517fca649b Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Thu, 18 Apr 2024 20:41:22 +0400 Subject: [PATCH] Set ss03 feature for better 'I' with Open Sans --- ui/style/style_core_custom_font.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/style/style_core_custom_font.cpp b/ui/style/style_core_custom_font.cpp index 0ad0fdf..f5f238a 100644 --- a/ui/style/style_core_custom_font.cpp +++ b/ui/style/style_core_custom_font.cpp @@ -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);