Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.9.6, 5.11.0
-
Qt 5.9.6 and Qt 5.11.0 built with -system-freetype (Freetype: 2.9) on latest Gentoo Linux ~amd64.
-
4601cd23f6c90372edbd4145833041bd7cf227cb (qt/qtdeclarative/dev)
Description
FontLoader {
id: fontNormal
source: "SourceSansPro-Light.ttf"
}
fontNormal.name is set to 'Source Sans Pro' which is the preferred name of the ttf.
FontLoader {
id: fontItaric
source: "SourceSansPro-Light-Itaric.ttf"
}
fontItalic.name is also set to 'Source Sans Pro' which is the preferred name of the ttf.
Text { font.family: fontNormal.name } // will be italic one
Then we can not apply fontNormal.name and fontItalic.name as they are because they are the same string and the font loaded at last will be applied in this case.
Please find the example attached to reproduce the issue. Fonts are also in it.
What I expect is that FontLoader sets its family name to the name property.
- Source Sans Pro Light
- Source Sans Pro Light Itaric
Attachments
Issue Links
- is required for
-
QTBUG-74860 Umbrella task for font selection issues
- In Progress
For Gerrit Dashboard: QTBUG-68829 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
288692,9 | Enabler: Store more properties of application fonts | dev | qt/qtbase | Status: MERGED | +2 | 0 |
288755,8 | Add additional properties to FontLoader to help disambiguate | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |