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

QTextLayout draw() rendering issues with "some" font sizes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.10.0
    • Fix Version/s: 5.12.0 Alpha
    • Component/s: GUI: Painting
    • Labels:
      None
    • Environment:
      Can be reproduced with latest Qt on at least X11 and macOS (you just need to zoom in your text document, you surely will hit some font size that is bad)
    • Commits:
      47904bb08aeb5dc63c78357aba6003460a65d4b3

      Description

      Different applications using the QTextLayout mechanism to render text have the same rendering glitches with some font sizes.

      You will get horizontal or vertical "non-filled" pixels in your textlines.

      E.g. If you have some "white" background and paint over text with some different background, you sometimes will get small "gaps" in the painted text.

      This happens e.g. on X11 or macOS.

      Example bug in Kate/KWrite (that uses QTextLayout directly without QTextDocument) can be seen here (horizontal lines, the same can happen vertically):

       

      https://bugs.kde.org/show_bug.cgi?id=379727

      https://bugsfiles.kde.org/attachment.cgi?id=105445

       

      Effect with QtCreator using 5.10.0 on macOS:

       

       

      Given two totally different code bases have the same issue (and QtCreator uses QTextDocument), I think this is some rendering issue in Qt.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              sletta Gunnar Sletta
              Reporter:
              cullmann Christoph Cullmann
            • Votes:
              6 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes