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

No text subpixel anti-aliasing on non-QWidget QPaintDevice on linux and freetype, and a mixed bag of results on windows

XMLWordPrintable

    • Linux/Wayland, Windows

      Subpixel anti-aliasing is a big mixed bag. Attached is a the main file of a QT Widget Application that draws some text with drawText, on various targets, directly on a QWidget, on a QPixmap with transparancy and one without, and on QImages of all applicable formats.

      Also attached the resulting renders from windows 11 and linux with wayland and freetype, blown up 5x.

       

      Expected result:

      I expect all options where it makes sense for sub-pixel anti-aliasing (i.e. various forms of RGB without alpha layer) to be sub-pixel anti-aliasing. So, the lines labelled: direct, pixmap, and all the variations of RGB without alpha.

       

      Actual result:

      On linux, none at all except directly rendering to a QWidget.

      On windows, only 3 correct results (direct, pixmap, RGB32), and one weird result, there is subpixel anti-aliasing on a QImage with an alpha channel (ARGB32 premultiplied).

        1. subpixel-windows-1.png
          subpixel-windows-1.png
          90 kB
        2. subpixel-linux-1.png
          subpixel-linux-1.png
          131 kB
        3. main-3.cpp
          4 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            esabraha Eskil Abrahamsen Blomfeldt
            intrets Intrets Intrets
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes