Details
-
Suggestion
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.2.3, 6.4.0
-
None
-
macOS 12.2
Description
The macOS FreeType backend fails to load font face variations of variable fonts (e.g. Regular, Light, Medium, etc.).
Example font: the variable version of the font "Inter" (https://fonts.google.com/specimen/Inter). It always renders as "Regular".
Reproduction (run with argument -platform cocoa:fontengine=freetype):
#include <QGuiApplication> #include <QFont> #include <QFontInfo> #include <QDebug> int main(int argc, char *argv[]) { QGuiApplication app(argc, argv); QFont font("Inter"); font.setStyleName("Light"); font.setPixelSize(12); QFontInfo info(font); qDebug() << info.family() << info.styleName(); }
Actual output:
"Inter" "Regular"
Expected output:
"Inter" "Light"
Attachments
Issue Links
- depends on
-
QTBUG-100666 FreeType font backend fails to select font style when a single font file contains multiple font faces
- Closed
- relates to
-
QTBUG-119419 Variable application fonts broken with FreeType on macOS
- Open
Gerrit Reviews
For Gerrit Dashboard: QTBUG-100681 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
395131,1 | WIP: Attempt to fix variation fonts on macOS backend | dev | qt/qtbase | Status: NEW | -2 | 0 |