Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.6.0 Beta
Description
styleName was added in Qt 5.6.
The docs state "If set, the font will be matched against style name instead of the font properties font.weight, font.bold and font.italic."
This however doesn't seem like correct behavior. It should still respond to those attributes as well.
Use the attached test application for reproducing the issue.
The application sets
font.family: "Roboto" font.weight: Font.Light
And the font is not Font.Light.
When set:
font.styleName: "Light"
Then it all becomes light. However, any text with embedded bold in it no longer works ("this has embedded bold"), and any text with bold: true is not bold.
Attachments
Issue Links
- depends on
-
QTBUG-55625 Matching font sub-family by name doesn't work on OS X
- Reported
-
QTBUG-57324 Matching font by stretch doesn't work on Windows
- Reported
-
QTBUG-53458 Matching by styleName on sub-family doesn't work on Windows
- Closed
-
QTBUG-53459 Matching on sub-family by font name doesn't work on Linux
- Closed
- is required for
-
QTBUG-74860 Umbrella task for font selection issues
- In Progress
- relates to
-
QTBUG-53196 Thin fonts do not work in Qt
- Closed
-
QTBUG-75641 Qml font weight and styleName not working (not rendered correctly)
- Closed
Gerrit Reviews
For Gerrit Dashboard: QTBUG-51335 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
169375,8 | Make self-contained test of condensed font matching and width | 5.8 | qt/qtbase | Status: MERGED | +2 | 0 |