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.