Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
QSR 1.2
-
None
Description
It seems that italic text with safe dynamic text may cause issues in some cases.
QML code to reveal the lurking bug. Two texts, the first is dynamic and the second is static.
SafeText { id: safeText1 objectName: "safeText1" x: 17 y: 155 width: 384 height: 64 color: "#ff3985" text: "DYNAMIC TEXT 0123456789ABCD" horizontalAlignment: Text.AlignHCenter verticalAlignment: Text.AlignVCenter runtimeEditable: true //font.strikeout: true //font.underline: true font.italic: true //font.bold: true font.family: "Tahoma" //font.pixelSize: 20 } SafeText { id: safeText2 objectName: "safeText2" x: 17 y: 255 width: 384 height: 64 color: "#ff3985" text: "DYNAMIC TEXT 0123456789ABCD" horizontalAlignment: Text.AlignHCenter verticalAlignment: Text.AlignVCenter //runtimeEditable: true //font.strikeout: true //font.underline: true font.italic: true //font.bold: true font.family: "Tahoma" //font.pixelSize: 20 }
Safety application renders this like in the image below. There are two issues. Letters cannibalize each others. And for some reason the dynamic text is in different position in the x-axis.
QML Scene tool renders these properly:
But when changing the font to courier, there is no problemo