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

off-by-2-pixels text rendering bug in QPlainTextEdit

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 4.7.0
    • None
    • None
    • MacOS 10.6.3, Qt/Cocoa 64bit, sha1: 55664a0ef4b88b67c9931c7d2f6853e5fa0a9716

    Description

      The QPlainTextEdit shows an off-by-2 bug in the glyph placement, which probably has to do with fractional font metrics. Selections seem to be placed correct, but the all text is placed 2 pixels lower. This is especially clear when using parenthesis, and even more clear when using an editor which places line-numbers next to the lines (i.e. Qt Creator).

      Attached is a screenshot of Qt Creator (left window) and the textedit example (right window), where you can see that:
      1) in creator, the line nr. is in the middle of the selections, but the text is not
      2) textedit exhibits the same behaviour

      The font used is Inconsolata at 12 pt, also attached.

      Attachments

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

        Activity

          People

            sorvig Morten Sørvig
            erikv Erik Verbruggen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes