Bug 327537 - Font redrawing artifacts if sub-pixel rendering is enabled in KDE
Summary: Font redrawing artifacts if sub-pixel rendering is enabled in KDE
Status: RESOLVED WORKSFORME
Alias: None
Product: konsole
Classification: Applications
Component: font (show other bugs)
Version: 2.10.5
Platform: openSUSE Linux
: NOR minor
Target Milestone: ---
Assignee: Konsole Developer
URL: http://i.imgur.com/YAY28EW.png
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-12 23:50 UTC by Kristopher Ives
Modified: 2014-01-12 16:57 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kristopher Ives 2013-11-12 23:50:05 UTC
I wanted to enable nice looking fonts in KDE a while ago and went into my OpenSuse and brought up the Fonts options

* I mark "Use anti-aliasing" as "Enabled" and click Configure...
* I uncheck "Exclude range" because I want small fonts also anti-aliased
* I check "Use sub-pixel rendering" and use the default "RGB" mode
* Hinting style is changed to "Slight" because it makes it easier to read text for long periods of time (at work) for me

Now when I use Konsole it has some very subtle re-draw issues and artifacts. There are two problems:

1.) When typing its clear the "line height" or something isn't expecting something to be drawn outside of some bounds. Basically it drops the lower portions of some letters like "g" and "p" as the screen is re-drawing while you type.

2.) When scrolling the portions that appear to be clipped in (1) are not cleared sometimes and artifacts are left on the screen. This is in the screenshot attached to this bug:

http://i.imgur.com/YAY28EW.png

(Notice random green spec at the bottom of the screenshot)

Note: Triggering Konsole to re-draw in some scenarios makes these artifacts go away, and getting a screenshot can be difficult. Everytime you take a screenshot the artifacts will go away.

Reproducible: Always

Steps to Reproduce:
1. Enable font anti-aliasing in KDE
2. Enable sub-pixel rendering (may be optional)
3. Launch Konsole and type looking at lower portions of your letters and how they redraw
4.) Try `'ls -lh` a directory with some scrolling and see the artifacts as in the screenshot
Actual Results:  
Green pixel artifacts or whatever your foreground terminal color is

Expected Results:  
Should have terminal text and background with no artifacts. I like turtles.

I don't run anything but pretty standard OpenSUSE 12.3 - this is a work machine
Comment 1 Christoph Feck 2013-11-13 00:42:57 UTC
Does it happen with every font? Also, please try increasing the Line Spacing in Konsole profile setting's "Advanced" tab. It is possible that the font simply reports wrong information about the number of pixels it needs.
Comment 2 Kristopher Ives 2013-11-13 21:28:07 UTC
I have tried it with two fonts that did the same thing:

* Stock OpenSuse font(Liberation Sans (8px)
* Droid Sans Mono (10px)

Thanks for letting me know about the Line Spacing option I bumped that up to 2 and haven't seen the bug since. It's also nice because I was wanting exactly that for basic readability (I try to keep things very simple)

I will report back if I see the graphics glitch with the line spacing, otherwise that's a good work around for a subtle problem.
Comment 3 Kristopher Ives 2013-11-14 18:24:05 UTC
Line spacing appears to solve it! Haven't had the problem since and I worked all day yesterday while on this machine.

Thanks again,
Kris