Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-35940

QTextLayout places soft hypnens out of text boundaries

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.15.0 Beta2
    • 5.1.1, 5.2.0
    • GUI: Text handling
    • None
    • Ubuntu 13.10, Windows 7
    • bd3c82f8db4391fc1d6d3338827356143fd598dd (qt/qtbase/5.14)

    Description

      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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            allan.jensen Allan Sandfeld Jensen
            elessar Ruslan Nigmatullin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes