Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 11-20-2006, 09:27 PM   #1
LQ Newbie
Registered: Jan 2004
Posts: 29

Rep: Reputation: 15
GTK 2.8 Subpixel Hinting?

It seems that my regular GTK apps stopped having subpixel hinting while my Qt apps and Firefox are still fine. Is there a problem with GTK 2.8?
I tried to install Xorg 7.1 from shortly after the upgrade to 11.0 but uninstalled it later, leaving some symlinks pointing to nonexistent places. So far I have tried reinstalling Gtk, Pango, Cairo, and Freetype (custom compile with bytecode interpreter enabled), but still no subpixel hinting in pure GTK apps.
Old 11-21-2006, 02:09 AM   #2
LQ Newbie
Registered: Jan 2004
Posts: 29

Original Poster
Rep: Reputation: 15
Did some more research on this issue. Since GTK 2's font rendering is done by Pango, Cairo, and Fontconfig I reinstalled those packages to make sure they are clean. Experimenting with ~/.font.conf shows that GTK 2 font rendering follows it for AA and hinting, but not subpixel hinting.
Then I compiled freetype 2.1.9 from the slackbuild with bytecode interpreter on, still no subpixel hinting in GTK apps.
Does anyone else have the same problem with GTK apps not using subpixel hinting?
The problem could be caused by Pango no longer directly accessing Freetype internals (as the freetype website says) and thus failing to utilize subpixel hinting. But I can't tell until I determine whether my problem is specific to my system or not.
Help a guy out and tell me whether I have a fsck'd installation please?
Old 09-17-2011, 09:18 AM   #3
LQ Newbie
Registered: Sep 2011
Posts: 1

Rep: Reputation: Disabled
(I know this is an ancient thread)

Originally Posted by milkycow View Post
Is there a problem with GTK 2.8?
Yes, in a way. GTK+ switched to detecting whether to use subpixel rendering based on what sort of monitor the user has. Based on testing: if it detects a CRT it respects fontconfig settings; if it detects an LCD it forces subpixel rendering settings.

You can still override this with your X resources; I have this in my .Xdefaults (to get nicely antialiased fonts without colours):
Xft.rgba: none
I'm betting the other options are "rgb" and "bgr".
1 members found this post helpful.
Old 09-17-2011, 10:07 AM   #4
Senior Member
Registered: May 2008
Posts: 3,742

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
More detail here:

Thanks lensquest, someone may stumble upon this and find it useful. Sub-pixel rendering has never been successful at doing anything other than making things look worse for me, so it may even be me.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
GTK Applications Not Respecting Subpixel Settings tvynr Linux - Desktop 1 09-06-2006 07:42 PM
dropline + kcontrol = hinting broken :( daspooky Slackware 3 03-31-2006 09:01 AM
Installing True Type Fonts and Hinting? keogk SUSE / openSUSE 1 10-12-2005 12:29 AM
Freerock uninstall stole GTK looking for up-to-date pango, atk, gtk, glib and xft tgz Oholiab Slackware 8 09-18-2005 12:57 PM
Firefox not using subpixel antialiasing? wintermute222 Linux - Software 6 03-15-2004 01:40 AM

All times are GMT -5. The time now is 08:48 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration