Details
-
Type:
Bug
-
Status: Reported
-
Priority:
P3: Somewhat important
-
Resolution: Unresolved
-
Affects Version/s: 5.14.2
-
Fix Version/s: None
-
Component/s: GUI: Font handling
-
Labels:None
-
Platform/s:
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.