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

Text.NativeRendering on Linux/Freetype produces pixelated and offset labels with non-integer QT_DEVICE_PIXEL_RATIO

    XMLWordPrintable

Details

    • Linux/X11

    Description

      This is a continuation of QTBUG-67007. We tried to fix it but accidentally made it worse, and this bug tracks the current state.

      In a nutshell, when QT_DEVICE_PIXEL_RATIO is set to a non-integer value (e.g. 1.5), text rendered with Text.NativeRendering is not rendered correctly. Originally the problem was that it was pixellated. In QTBUG-67007, we tried to fix that, but accidentally made it worse: now it is not only pixellated, but also visually offset from its desired location. See the attached image.

      Workaround: set Text.QtRendering for every QML item that produces text. However for a large codebase this can be quite troublesome, and obviously an upstream fix is preferred.

      Attachments

        1. Worse in 5.11.png
          65 kB
          Nate Graham

        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
              pointedstick Nate Graham
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes