Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.14.2
-
None
Description
If I create a QFont and set a styleName(), the associated QFontInfo doesn't show the right values for weight()/style() and similar.
Here's an example, the font used is "Noto Sans"
qDebug() << font_info.weight() << font_info.style() << font_info.styleName() << font_info.bold() << font_info.italic(); // output with "Bold Italic" // 50 QFont::StyleNormal "Bold Italic" false false // output with "Regular" // 50 QFont::StyleNormal "Regular" false false
The font is rendered with bold/italic correctly but there is no way of telling from QFontInfo.
Even using QRawFont gives the same results.