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

Broken bitmap fonts when a non-rotating transform is set

    XMLWordPrintable

Details

    • Linux/X11
    • 90e3f0bd7 (dev), 7a42679a9 (6.6), 991d0acf3 (6.5)

    Description

      With the following code (see QTBUG-81540 for the font), artifacts are visible on the text. Either removing the translation or adding in the 90 degree rotation fixes the issue. It can also be fixed by adding a scale. So it seems to only occur with translation matrices specifically for bitmap fonts.

              QFont bm("GohuNew", 28);
              QPainter p(this);
      
               p.translate(100, 100);
              //p.rotate(90);
              p.setFont(bm);
              p.drawText(QPointF(100, 100), "Foobar");
      

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes