Set ss03 feature for better 'I' with Open Sans
This commit is contained in:
parent
eab785a1c8
commit
70e61c8ab8
1 changed files with 3 additions and 0 deletions
|
|
@ -51,6 +51,9 @@ QFont ResolveFont(const QString &familyOverride, uint32 flags, int size) {
|
||||||
result = Database.font(custom.family, custom.style, point);
|
result = Database.font(custom.family, custom.style, point);
|
||||||
} else {
|
} else {
|
||||||
result.setFamily(GetFontOverride(flags));
|
result.setFamily(GetFontOverride(flags));
|
||||||
|
#if QT_VERSION >= QT_VERSION_CHECK(6, 7, 0)
|
||||||
|
result.setFeature("ss03", true);
|
||||||
|
#endif // Qt >= 6.7.0
|
||||||
if (bold) {
|
if (bold) {
|
||||||
#ifdef LIB_UI_USE_PACKAGED_FONTS
|
#ifdef LIB_UI_USE_PACKAGED_FONTS
|
||||||
result.setWeight(QFont::DemiBold);
|
result.setWeight(QFont::DemiBold);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue