Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.8.0 FF
-
None
-
-
bf7ed10ce (dev)
Description
Run the following code on Windows:
import QtQuick import QtQuick.Window Window { width: 640 height: 480 visible: true title: qsTr("Hello World") Rectangle { id: alignItem x: 50 y: 100 width: 400 height: 1 color: "blue" } Text { id: textItem textFormat: Text.RichText font.family: "Arial Unicode MS" font.pixelSize: 50 text: "a犜ण<span style=\"font-size: 25px\">a犜ण</span><span style=\"font-size: 10px\">a犜ण</span>" anchors.baseline: alignItem.top anchors.left: alignItem.left } }
The blue line cuts through the letters instead of aligning to the actual baseline of the text. Using StyledText (with <font size=..> instead) this works as expected. Also, if you replace the text with only e.g. the letter 'a' (so that only a single font is used), it also aligns perfectly.
Attachments
Issue Links
- is required for
-
QTBUG-121649 Implement support for font selection in SVG generators
- Closed