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

[REG 5.5->5.6] Rotated text drawn badly on Windows high resolution screen (DPR>1, native engine only)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.6.0 RC
    • 5.6.0 Alpha
    • GUI: Font handling
    • None
    • Windows 10 Home, Qt 5.6 built from a checkout 12/16/2015.
    • b9bd83c9c2992a156583f5e211eed9adb7f23d6b

    Description

      Rotated text is drawn very badly or not at all on a Windows high-resolution screen. When QPainter returns 1 from QPaintDevice::devicePixelRatioF(), the text looks fine. When QPainter returns 3 (which is the case on our high-res laptop) from PaintDevice::devicePixelRatioF(), the text looks bad or fails to show at all. The same example app built for Macintosh looks good on a Retina monitor.

      The attached zip file reproduces the problem. It makes a QMainWindow and draws text with zero rotation, +-45 degree rotation and +-90 degree rotation. It also uses qDebug() to print the devicePixelRatio to the console. The results are shown in the attached screen shots.

      The Freetype font engine does not have the issue.

      Attachments

        1. qtbug50009_55_ft.jpg
          qtbug50009_55_ft.jpg
          79 kB
        2. qtbug50009_55.jpg
          qtbug50009_55.jpg
          79 kB
        3. qtbug50009_56_ft.jpg
          qtbug50009_56_ft.jpg
          65 kB
        4. qtbug50009_56.jpg
          qtbug50009_56.jpg
          34 kB
        5. qtbug50009.zip
          2 kB
        6. QtDiagOutput.txt
          5 kB
        7. RotatedTextBug.zip
          0.6 kB
        8. RotatedTextBugDPR1.PNG
          RotatedTextBugDPR1.PNG
          18 kB
        9. RotatedTextBugDPR3.PNG
          RotatedTextBugDPR3.PNG
          49 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            johnweeks John Weeks
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes