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

QPainter::drawText() render text with wrong order for multi-line Arabic/Latin characters

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.15.2
    • GUI: Text handling
    • None
    • Windows 10 x64
      Qt 5.15.2
    • Windows

    Description

          When drawing multi-line text with Arabic and Latin mixed character using QPainter::drawText(), Qt will render characters in the text with incorrect order.

          For example:

      ضثثثقققععه
      Aشسيبلاتنمءط

      The character 'A' will be placed after the Arabic words when rendering with QPainter::drawText()

          The sample program to reproduce this issue has been attached. Run the sample program you will see the text in two places, the above one is rendered with QPainter::drawText() which is wrong, the bottom one is a QTextEdit which is correct.

      Attachments

        1. with-single-text-block.png
          with-single-text-block.png
          14 kB
        2. text.png
          text.png
          15 kB
        3. testWidget.zip
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            jianliang79 liang jian
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes