-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.1.1, 5.2.0
-
None
-
Ubuntu 13.10, Windows 7
-
bd3c82f8db4391fc1d6d3338827356143fd598dd (qt/qtbase/5.14)
QTextLayout carefully considers soft hyphens to understand where to wrap the line. But their size is considered zero at alignment stage so hyphens brakes out of text boundaries with Qt::AlignJustify.
Example qml file and it's screenshot produced by qmlscene are attached.
Behavior is reproduced even if QTextLayout is used directly, so it's not QTextDocument's bug.
For Gerrit Dashboard: QTBUG-35940 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
291624,12 | Fix non-trivial soft-hyphen line breaks | 5.14 | qt/qtbase | Status: MERGED | +2 | 0 |