openSUSE Forums > Applications » Subpixel Hinting for 11.2- GTK Apps- Solution

Go Back   openSUSE Forums > Applications
Forums FAQ Members List Search Today's Posts Mark Forums Read

Applications Questions about desktops (KDE, Gnome, XFCE, etc.), software applications (configuration, usage, bugs, documentation)

Reply
Page 1 of 2 1 2
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 13-Nov-2009, 23:21
Student Penguin
 
Join Date: Jun 2008
Posts: 74
anshuljain hasn't been rated much yet
Default Subpixel Hinting for 11.2- GTK Apps- Solution

I wanted to share this with the larger community. I was able to get perfect subpixel rendering on my 11.2 install for GTK apps in KDE (I've tested this on GNOME as well- it works fine).

Steps to enable subpixel rendering:-
1. Install the freetype2 packages from Index of /subpixel

2. I have a patched cairo located in my OBS repo at Index of /repositories/home:/anshuljain/openSUSE_11.2/i586. Install the cairo package. This patched version differs from the earlier patched versions in Index of /subpixel. I have enabled the original LCD patch, which looks a LOT better than the previous cairo patched builds in the Supixel - openSUSE-Community repo.

3. Create a file 10-lcd-filter.conf in /etc/fonts/conf.avail as, and copy the following contents :-

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- Enable freetype's new subpixel filter. Currently, only a cairo
version containing the patches from freedesktop #10301 respects this
setting. -->
<match target="font">
<edit mode="assign" name="lcdfilter">
<const>lcddefault</const>
</edit>
</match>
</fontconfig>

4. Create a file ~/.Xresources in your /home directory and paste the following contents:-

Xft.lcdfilter: lcddefault


5. Log out and login again.

Now for the necessary screenshots


Anshul
Reply With Quote
  #2 (permalink)  
Old 14-Nov-2009, 09:01
Puzzled Penguin
 
Join Date: Nov 2009
Posts: 1
postillion hasn't been rated much yet
Default Re: Subpixel Hinting for 11.2- GTK Apps- Solution

Thanks a lot. Perfect.
Reply With Quote
  #3 (permalink)  
Old 14-Nov-2009, 09:27
Magnu5's Avatar
Puzzled Penguin
 
Join Date: Mar 2009
Location: Finland
Posts: 8
Magnu5 hasn't been rated much yet
Send a message via Skype™ to Magnu5
Default Re: Subpixel Hinting for 11.2- GTK Apps- Solution

Thanks, this should be made the default.
Reply With Quote
  #4 (permalink)  
Old 14-Nov-2009, 13:12
Student Penguin
 
Join Date: Jun 2008
Posts: 74
anshuljain hasn't been rated much yet
Default Re: Subpixel Hinting for 11.2- GTK Apps- Solution

Thanks for the feedback guys I'll be creating a new set of RPMs- freetype and cairo both, with a cleartype patch (its already done, waiting for upload). This will probably eliminate the need for a config file modification as in my earlier method. IMO, these set of patches make the font rendering better
Reply With Quote
  #5 (permalink)  
Old 15-Nov-2009, 04:27
Puzzled Penguin
 
Join Date: Jun 2008
Posts: 2
valurolafsson hasn't been rated much yet
Default Re: Subpixel Hinting for 11.2- GTK Apps- Solution

Great! Could you possibly also add the *-32bit packages for those of us using x86_64?

- Valur
Reply With Quote
  #6 (permalink)  
Old 16-Nov-2009, 10:13
Puzzled Penguin
 
Join Date: Mar 2009
Posts: 2
hermelin78 hasn't been rated much yet
Default Re: Subpixel Hinting for 11.2- GTK Apps- Solution

Great job !!! Thanx
Reply With Quote
  #7 (permalink)  
Old 04-Dec-2009, 09:10
Puzzled Penguin
 
Join Date: Dec 2009
Posts: 1
Gofaizen hasn't been rated much yet
Default Re: Subpixel Hinting for 11.2- GTK Apps- Solution

Now hinting working fine. Thank you.
Reply With Quote
  #8 (permalink)  
Old 23-Dec-2009, 18:02
Student Penguin
 
Join Date: Jun 2008
Location: New Zealand
Posts: 61
GransRemedy hasn't been rated much yet
Send a message via ICQ to GransRemedy
Default Re: Subpixel Hinting for 11.2- GTK Apps- Solution

Ok I've just upgraded to 11.2 and Firefox fonts are terrible (see pic below), but I cannot get this to work.

I've followed the steps above, and things look ok in Konq, but I prefer to use FF for general web browsing.

On the left is Firefox 3.5.6 (for Suse 11.2) on the right is Konq 4.3.1.
-------

--------
I know the differences are subtle, and only visible on LCD displays, but after looking at this for a while the font smoothing/sub-pixel hinting version is much easier on the eyes.

Cairo and Freetype installed as above. Any ideas?

Thanks
__________________
BZFlag: good clean fun. Sorta.
Reply With Quote
  #9 (permalink)  
Old 25-Dec-2009, 07:49
Puzzled Penguin
 
Join Date: Jun 2008
Posts: 2
valurolafsson hasn't been rated much yet
Default Re: Subpixel Hinting for 11.2- GTK Apps- Solution

Are you running 64-bit or 32-bit OpenSuse? I only ask, since if you are running 64-bit then I don't think that repo has the *-32bit files needed to run 32 bit applications, in case your Firefox is a 32 bit application, while Konqi is 64 bit.
Reply With Quote
  #10 (permalink)  
Old 25-Dec-2009, 20:31
Student Penguin
 
Join Date: Jun 2008
Location: New Zealand
Posts: 61
GransRemedy hasn't been rated much yet
Send a message via ICQ to GransRemedy
Default Re: Subpixel Hinting for 11.2- GTK Apps- Solution

I'm pretty sure 32bit. Is there a way to tell from this (sysinfo)?

Code:
  OS:  Linux 2.6.31.5-0.1-pae i686
  System:  openSUSE 11.2 (i586)
  KDE:  4.3.1 (KDE 4.3.1) "release 6"
thanks
__________________
BZFlag: good clean fun. Sorta.
Reply With Quote
Reply
Page 1 of 2 1 2

Bookmarks


Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.2