Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Desktop Environments
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Desktop Environments
Support for your Ubuntu desktop. Including Gnome, KDE and XFCE.

 
Thread Tools Display Modes
Old August 13th, 2006   #1
hugmenot
Grande Half-n-Half Cinnamon Ubuntu
 
Join Date: Mar 2006
My beans are hidden!
Improved subpixel font rendering packages for Edgy

Earlier this year FreeType developer David Turner posted some patches for Cairo and Xft that improved the rendering of fonts on LCD screens (but also CRTs with Trinitron layout). These were put up with the proviso that he was unsure whether they would infringe patented algorithms around Microsoft’s ClearType technology.

The most recent patches by David have been incorporated into a series of packages that replace the libraries libreetype6, libcairo2 and libxft2 on Edgy. The patches move the filtering from Xft and Cairo to Freetype with the effect that letters have less color fringing and more faithful letter outlines. This is achieved by more advanced subpixel filtering methods and getting rid of stem quantization. Some people dislike this kind of “hack” visually, but for many it is a good trade-off of letter contrast and font aesthetics. These patches have meanwhile been released with FreeType 2.3.0.

User mlind is hosting readymade packages for Edgy in his own repo. These are the sources (enter in /etc/apt/sources.list)

Code:
deb http://www.telemail.fi/mlind/ubuntu edgy fonts
deb-src http://www.telemail.fi/mlind/ubuntu edgy fonts
The signing keys for mlind’s repo can be obtained with these commands
Code:
gpg --recv-keys 937215FF
gpg --export --armor 937215FF | sudo apt-key add -
Then update your package cache (apt-get update) and start an upgrade (apt-get dist-upgrade or equivalent). The patched packages will be installed over the official unpatched versions since they have a slightly higher version number. To get back to the standard packages use the “Package → Force version...” function in Synaptic on all packages listed under “Origin → elisanet.fi” or an equivalent function with other tools.

It’s up to taste (or debate) whether the font internal shape instructions (hints) lead to better results or the automatic hinter that uses generic heuristics. The two systems – i.e., either the byte-code interpreter or the auto-hinter – can be toggled with

Code:
sudo dpkg-reconfigure fontconfig-config
Be sure to set subpixel rendering to “always” on the second screen (and bitmap fonts to “No”). The amount of hinting applied can be adjusted in the Gnome Font Settings dialog.

To reduce the superbold appearance it might help to switch the autohinter off for bold faces.
This can be done by adding some lines in the .fonts.conf file in the user home directory or in the system-wide /etc/fonts/fonts.conf. A complete user file is attached to this post.
Code:
<match target="font">
 <test name="weight" compare="more"><const>medium</const></test>
 <edit mode="assign" name="autohint"><bool>false</bool></edit>
</match>
The patches alone can be found on David’s Freetype page
and in a FreeType release > 2.3.0 where the code has to be enabled with the macro FT_CONFIG_OPTION_SUBPIXEL_RENDERING before compiling.
Attached Files
File Type: txt ».fonts.conf«.txt (361 Bytes, 2132 views)

Last edited by hugmenot; April 1st, 2007 at 08:39 AM.. Reason: rewording and less options
hugmenot is offline   Reply With Quote
Old August 17th, 2006   #2
mlind
Skinny Extra Sweet Ubuntu
 
mlind's Avatar
 
Join Date: Nov 2005
Beans: 2,325
Ubuntu Intrepid Ibex (testing)
Re: Improved subpixel font rendering packages for Edgy

I'll subscribe to this thread. Although I'm not Edgy user yet, I'm going to install these packages once Knot 2 is out.
__________________
Building on Ubuntu using [pbuilder]
Other resources [Upgrading from CVS, Gaim2, Anjuta, Rhythmbox]
mlind is offline   Reply With Quote
Old August 17th, 2006   #3
desperado666
A Carafe of Ubuntu
 
desperado666's Avatar
 
Join Date: Oct 2005
Beans: 115
Ubuntu Karmic Koala (testing)
Re: Improved subpixel font rendering packages for Edgy

And i need the original turner patches to build new ones.

Does somebody have them?
desperado666 is offline   Reply With Quote
Old August 17th, 2006   #4
mlind
Skinny Extra Sweet Ubuntu
 
mlind's Avatar
 
Join Date: Nov 2005
Beans: 2,325
Ubuntu Intrepid Ibex (testing)
Re: Improved subpixel font rendering packages for Edgy

Quote:
Originally Posted by desperado666 View Post
And i need the original turner patches to build new ones.

Does somebody have them?
Those aren't the two patches mentioned on first post? You can download source package(s) from repository mentioned on first post too, and get patches from debian/patches folder.

I can rebuild and upload the packages if required.
__________________
Building on Ubuntu using [pbuilder]
Other resources [Upgrading from CVS, Gaim2, Anjuta, Rhythmbox]
mlind is offline   Reply With Quote
Old August 17th, 2006   #5
no1wantdthisname
A Carafe of Ubuntu
 
Join Date: Oct 2005
Beans: 104
Re: Improved subpixel font rendering packages for Edgy

I prefer the default font rendering. These packages make fonts really blurry.
no1wantdthisname is offline   Reply With Quote
Old August 17th, 2006   #6
MetalMusicAddict
Tall Cafè Ubuntu
 
MetalMusicAddict's Avatar
 
Join Date: Jan 2005
My beans are hidden!
Re: Improved subpixel font rendering packages for Edgy

Quote:
Originally Posted by hugmenot View Post
These were put up with the proviso that he was unsure whether they would infringe patented algorithms around Microsoft’s ClearType technology.
So why would he think they would. Wouldnt you know one way or another? Honest question.

Last edited by MetalMusicAddict; August 17th, 2006 at 04:59 PM..
MetalMusicAddict is offline   Reply With Quote
Old August 17th, 2006   #7
Amaranth
Ubuntu Developer
 
Amaranth's Avatar
 
Join Date: Mar 2005
Beans: 364
Send a message via MSN to Amaranth
Re: Improved subpixel font rendering packages for Edgy

It's best not to check. You get in more trouble for knowingly infringing on a patent.
__________________
Travis Watkins
Blog: Realist Anew
Projects: Compiz
Amaranth is offline   Reply With Quote
Old August 17th, 2006   #8
hugmenot
Grande Half-n-Half Cinnamon Ubuntu
 
Join Date: Mar 2006
My beans are hidden!
Re: Improved subpixel font rendering packages for Edgy

Quote:
Originally Posted by no1wantdthisname View Post
I prefer the default font rendering. These packages make fonts really blurry.
After using the udated patches for a couple of days I really wonder whether you’re right. I can’t help the impression that contrast was better with Davids Turner’s original patches.
Jinghua told me that they were a direct port however. Could be the newer Freetype, though.
hugmenot is offline   Reply With Quote
Old August 17th, 2006   #9
Amaranth
Ubuntu Developer
 
Amaranth's Avatar
 
Join Date: Mar 2005
Beans: 364
Send a message via MSN to Amaranth
Re: Improved subpixel font rendering packages for Edgy

I turned off all hinting, it looks a lot like OS X or WinXP fonts now.
__________________
Travis Watkins
Blog: Realist Anew
Projects: Compiz
Amaranth is offline   Reply With Quote
Old August 22nd, 2006   #10
saracen
Way Too Much Ubuntu
 
Join Date: Mar 2006
Location: Montreal, Canada
Beans: 245
Hardy Heron (Ubuntu Development)
Re: Improved subpixel font rendering packages for Edgy

Quote:
Originally Posted by hugmenot View Post
After using the udated patches for a couple of days I really wonder whether you’re right. I can’t help the impression that contrast was better with Davids Turner’s original patches.
Jinghua told me that they were a direct port however. Could be the newer Freetype, though.
Ya I agree. They definitely feel more blurry. What font are you using there in your screenie? And what gtk and compiz themes?
saracen is offline   Reply With Quote

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

Forum Jump


All times are GMT -4. The time now is 08:22 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry