Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
None
-
5.0.2
-
None
-
Mac OS X Mountain Lion, Ubuntu Linux
Description
We use the default Android font in our embedded application:
http://developer.android.com/design/style/typography.html
We want to use different flavours of this font (Regular, Light, Bold, Medium) in our app.
However, from QML, the font can only be specified by "font.family". All of these .ttf files contain the same font family name (which makes sense).
Setting font.bold to true on the Roboto Regular font produces a different end result than using the Roboto-bold.ttf file.
Likewise, playing around with font.weight does not yield any decent result. Both of these seem to process the existing font instead of looking for the different flavors of the font (like native applications do).
We need a way of accessing the different flavours of a font from QML.
For now, we have worked around this issue by editing the Roboto font and changing the "Family name" field and saving them as totally different fonts.
Attachments
Issue Links
- is required for
-
QTBUG-37653 QQ 2 suport for Thin and UltraLight Fonts
- Closed
- relates to
-
QTBUG-38482 Font style doesn't follow the font weight
- Closed
-
QTBUG-38263 QML elements do not use font loaded in FontLoader
- Closed
-
QTBUG-46042 QFontEngineFT artificially emboldens fonts that are bold but don't have the Style Map set to Bold
- Reported
-
QTBUG-46043 QFontDatabase makes bad font weight choices for Alright Sans family
- Closed