Bug 306251 - Font anti-aliasing sub-pixel defect in GIMP 2.8.x with KDE
Summary: Font anti-aliasing sub-pixel defect in GIMP 2.8.x with KDE
Status: RESOLVED DOWNSTREAM
Alias: None
Product: systemsettings
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR minor
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL: https://bugzilla.gnome.org/show_bug.c...
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-04 14:11 UTC by Tyson Tan
Modified: 2012-09-04 21:42 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Font anti-aliasing sub-pixel defect in GIMP 2.8.x with KDE (97.77 KB, image/png)
2012-09-04 14:23 UTC, Tyson Tan
Details
Correct text antialias after applying the workaround. (96.31 KB, image/png)
2012-09-04 14:23 UTC, Tyson Tan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tyson Tan 2012-09-04 14:11:30 UTC
Summary:
In GIMP 2.8.x on a system with KDE installed, after making change to KDE's font anti-alias settings, inserting white texts with anti-aliasing option over colorful background will produce greenish sub-pixel defect around the texts. Such defect remains after you flatten the image and will be saved in the document.

I don't know if this is a GIMP bug itself, but since the trigger and workaround is within KDE System Settings, I think I should report this problem here as well.

Reproducible: Always

Steps to Reproduce:
1. Ubuntu 12.04.1 LTS with KDE 4.8.5 from Kubuntu PPA installed.
2. Either log in Unity or KDE desktop.
3. In KDE System Settings -> Application Appearance -> Fonts -> Use anti-aliasing -> Enabled -> Configure -> Use Sub-Pixel Rendering, Hinting Type = None
4. Start GIMP, make a red pure background.
5. Insert some white texts over the red background, make sure antialiasing is on.
6. Notice greenish defect around the texts.
7. Select the texts, turn antialiasing off, those defect will disappear.
Actual Results:  
The sub-pixels are always greenish unless the texts are black.

Expected Results:  
The sub-pixels should be blended with the background color.

Workaround:
KDE System Settings -> Application Appearance -> Fonts -> Use anti-aliasing -> Enabled -> Configure -> Uncheck everything

You may apply this workaround when GIMP is running, the effect will show immediately when you select the defect texts in GIMP, then turn antialias off and back on.

Sometimes such defect won't show up, however I've been plagued by this problem since the day GIMP 2.8 is out. I've encountered such defect on the following configurations more than a few times. On Ubuntu 12.04.1 + KDE 4.8.5 + GIMP 2.8.2 this problem show up everytime after I changed KDE font anti-alias settings.

Ubuntu 12.04 + KDE 4.8.4 + GIMP 2.8.0
Ubuntu 12.04 + KDE 4.8.4 + GIMP 2.8.2
Ubuntu 12.04 + KDE 4.8.5 + GIMP 2.8.2
Ubuntu 12.04 + KDE 4.9.0 + GIMP 2.8.0
Ubuntu 12.04 + KDE 4.9.0 + GIMP 2.8.2
Ubuntu 12.04.1 + KDE 4.8.5 + GIMP 2.8.2

All of them have QT 4.8.2 (libqt libraries) installed.
Comment 1 Tyson Tan 2012-09-04 14:23:23 UTC
Created attachment 73646 [details]
Font anti-aliasing sub-pixel defect in GIMP 2.8.x with KDE

Font anti-aliasing sub-pixel defect in GIMP 2.8.x with KDE
Comment 2 Tyson Tan 2012-09-04 14:23:58 UTC
Created attachment 73647 [details]
Correct text antialias after applying the workaround.

This screenshot is taken from the same session as the defect one, just after
applying the workaround, it was restored realtime. No restarting GIMP is
needed.
Comment 3 Christoph Feck 2012-09-04 21:42:18 UTC
See https://bugzilla.gnome.org/show_bug.cgi?id=657047