Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.5.3, 6.6.3, 6.7.2, 6.8.0 Beta2
-
None
Description
The Text item fails to render single gylphs from "Segoe MDL2 Assets" with renderTypeQuality = Text.VeryHighRenderTypeQuality:
import QtQuick import QtQuick.Controls Window { id: main width: 480 height: 480 visible: true Text { id: fontIcon anchors.centerIn: parent font.family: "Segoe MDL2 Assets" font.pixelSize: Math.min(main.width, main.height) * 0.8 text: "\ue163" renderTypeQuality: Text.HighRenderTypeQuality } Button { font.pixelSize: 24 text: "Make it crash now!" onClicked: fontIcon.renderTypeQuality = Text.VeryHighRenderTypeQuality } }
This font is somewhat important, as it is Microsoft's pre-installed symbol font for Windows 10.
With Qt 6.8.0 Beta2 the situation is detected at least and a warning is printed, while the text item remains empty. For older version of Qt (6.5.3, 6.6.3, 6.7.2) the example code below crashes reproducibly. Qt 5.15 is not affected as it doesn't know the renderTypeQuality property.