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

Incorrect drawing QTextDocument with negative rigthBearing

    XMLWordPrintable

Details

    Description

      Hello!
      There is a problem with rendering QTextDocument in our project.
      We develop CAD system, which is used very widely in the Russia "GOST type A" font. And with him have problems when rendering using QTextDocument.

      I prepared a test application and examples of his work:

      • gost.png - correctly drawing one char without italic style.
      • gost_italic.png - incorrect drawing one char with italic style.
      • arial.png - same behaviour as gost_italic but with more popular "Arial" font.

      Based on analysis of these data, I concluded that the incorrect behavior begins when rightBearing of char have a negative value.

      As I understand, QTextEdit use same drawing engine and it is also affected by this problem (see attachment qtextedit.png).

      Can you make some investigation and confirm this bug?

      Attachments

        1. arial.png
          arial.png
          45 kB
        2. arial-bearing.png
          arial-bearing.png
          1 kB
        3. arial-italic-bearing.png
          arial-italic-bearing.png
          2 kB
        4. gost_italic.png
          gost_italic.png
          51 kB
        5. gost.png
          gost.png
          57 kB
        6. QtBugRightBearing.zip
          3 kB
        7. qtextedit.png
          qtextedit.png
          42 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            god3 Andrey Lukutkin
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes