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

Anti-aliasing doesn't work in QGraphicsTextItem with small font size

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 4.8.4
    • GUI: Text handling
    • None
    • I am running on FreeBSD 9.2-STABLE amd64 with Qt4 from ports.
      Qt4 version is actually 4.8.5, but bug reports page doesn't recognize 4.8.5.

    Description

      QGraphicsTextItem doesn't have any anti-aliasing when the size of the font falls below ~65. As a result, text with continuously resized font resizes in a very unsmooth, jerky way. You can see the lines getting wider and narrower, and different parts of the letters moving not in sync. The issue is especially visible with the font sizes between 20 and 30.

      Ideally, I am expecting to see the text resizing like on the modern smartphone screens when the user resizes the browser there, for example.

      Please compile the attached example and observe this. I can also upload the video in case you can't reproduce it.

      I think the font rendering is eventually done by libfreetype, but I believe libfreetype is able to anti-alias fonts at any size.

      Attachments

        1. Makefile
          0.3 kB
        2. testcase.cpp
          1 kB
        3. testcase.h
          0.1 kB
        4. txt-font100.png
          txt-font100.png
          21 kB
        5. txt-font40.png
          txt-font40.png
          12 kB

        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
              yurivict Yuri
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes