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

Linux: text rendering is incorrect in QGraphicsView with an OpenGL viewport

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.1.0
    • 5.0.1
    • GUI: OpenGL
    • None
    • Ubuntu 12.04, Ubuntu 12.10, various graphics cards (tested on Intel integrated, VMWare on an NVIDIA card, and directly on NVIDIA hardware).
    • ebd8ca146db023143d32ca6cba68b813b9e3da0b (5.0)

    Description

      When rendering text in a QGraphicsView with an OpenGL viewport, the letters are often off by a few pixels, sometimes too close to the letter next to it, other times too high/low. The screenshots will demonstrate this better than I can explain it.

      I'm also attaching an example that demonstrates the problem. Run "gl-text" for a non-GL viewport, and "gl-text gl" for an OpenGL viewport.

      This seems to have something to do with font antialiasing – disabling it makes both GL and non-GL look the same.

      Attachments

        1. gl-text.png
          gl-text.png
          12 kB
        2. gl-text.tar.gz
          0.6 kB
        3. nogl-text.png
          nogl-text.png
          12 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            rodal Samuel Rødal
            jfaust Josh Faust
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes