Details
Description
When "Hiragino Sans" font is set, strikeout is replaced with underline for entire string.
This is important, because "Hiragino Sans" is correct font for Japanese (with default font some glyphs are rendered as Chinese variants, though the meaning is the same, look differs), so custom font family should be preferred, but it brings this bug.
import QtQuick import QtQuick.Layouts import QtQuick.Window Window { width: 640 height: 480 visible: true title: qsTr("你好,世界。") ColumnLayout { anchors.fill: parent anchors.margins: 10 spacing: 10 Text { text: "default font:" } RowLayout { spacing: 10 Layout.fillWidth: true Text { font.pixelSize: 24 font.strikeout: true text: 'Text: 你好,世界。' } TextEdit { font.pixelSize: 24 font.strikeout: true readOnly: true text: 'TextEdit: 你好,世界。' } } Text { text: "Hiragino Sans:" } RowLayout { spacing: 10 Layout.fillWidth: true Text { font.pixelSize: 24 font.family: 'Hiragino Sans' font.strikeout: true text: 'Text: 你好,世界。' } TextEdit { font.pixelSize: 24 font.family: 'Hiragino Sans' font.strikeout: true readOnly: true text: 'TextEdit: 你好,世界。' } } } }
This is definitely not a font issue, because it's OK in native apps:
Attachments
Issue Links
- relates to
-
QTBUG-96700 Strikethrough formatting changes to underline.
- Closed
For Gerrit Dashboard: QTBUG-97594 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
453148,12 | Fix positioning of text decoration with some fonts | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
453388,2 | Fix positioning of text decoration with some fonts | 6.5 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
453389,2 | Fix positioning of text decoration with some fonts | 6.4 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
453418,2 | Fix positioning of text decoration with some fonts | tqtc/lts-5.15 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |
453419,2 | Fix positioning of text decoration with some fonts | tqtc/lts-6.2 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |