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

Justified text layout becomes ragged when soft hyphens present

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • Some future release
    • 4.6.2
    • GUI: Text handling
    • None
    • Seen on Windows and Linux

    Description

      When soft hyphens (0x00ad) are included in a QTextDocument in QTextBlocks with alignment = Qt::AlignJustify, the alignment is NOT fully justified.

      This behaviour can be seen using the demo 'Text Edit' application by opening an html file containing justified paragraphs and soft hyphens.

      Although the screen rendering may be 'acceptable', the ragged justification can be quite noticeable in exported pdf.

      An example html file is attached, along with the pdf. Note also the absence of a hyphen at the end of the third paragraph in the pdf, although it is in the html.

      Attachments

        1. hy.html
          14 kB
          Simon Westrip
        2. hy.pdf
          31 kB
          Simon Westrip
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            publcif Simon Westrip
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes