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.
Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

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

 
Thread Tools Display Modes
Old May 22nd, 2006   #1
Pausanias
A Carafe of Ubuntu
 
Pausanias's Avatar
 
Join Date: Mar 2005
Location: San Francisco
Beans: 134
Ubuntu 9.04 Jaunty Jackalope
Cool HOWTO: quickly improve X11 font rendering


This post is now outdated. For the latest improved font information, including a proper Edgy repository so you don't get conflicts, check here:

http://www.ubuntuforums.org/showthread.php?t=235526



This is just a summary of a previous thread on improving the way your fonts look in X11. Many people have noticed significant improvment in font rendering with these patches. You might wish to check out these before and after screenshots from that thread.

Other people wrote the patches; I am just condensing the various instructions that were dispersed throughout the previous thread, with some more detailed instructions. The algorithms in these patches may or may not be covered by Microsoft's ClearType patents; check with this guy if this is a concern for you. Special thanks go to jcooper, hugmenot, mannheim, and of course David Turner who wrote the patches to begin with.

EDIT: The instructions have been updated so as not to conflict with certain people's setups. Please report any problems on this thread.

Code:
sudo apt-get install libcairo2-dev libxft-dev libfontconfig1-dev
sudo apt-get remove libcairo2-dev libxft-dev
mkdir fontpatches
cd fontpatches
(download the three message attachments here)
unzip *.zip
gunzip *gz
sudo cp local.conf /etc/fonts
sudo dpkg -i *deb
Answer yes to all questions. Then reboot the computer. When Ubuntu comes back, go to System->Preferences->Font. Make sure that subpixel smoothing is on. Then click on details. Choose either Slight or Full Hinting, or another value if you prefer. I find that the rendering works very well with the Bitstream Vera Sans font. If you find a better font you can post it here.

To prevent future updates from overwriting the patches, load synaptic. On the left hand side, click on "Installed (local or obsolete)." Select all packages containing the words libcairo, libxft, and libfreetype. Under the package menu, select lock version. To undo the version lock, click on the word "Pinned" on the left hand side. Select all package containing the words libcairo, libxft, and libfreetype. Under the package menu, uncheck lock version.

To uninstall the packages, go again to the "Installed (local or obsolete)" section in synaptic. Select each package one at a time. Under the package menu, select "force version." When the menu comes, select the version that has the text "(dapper)" at the end of it. When you're done doing this for all the packages, click on apply. Then "sudo rm /etc/fonts/local.conf." Reboot to get the vanilla font rendering back.
Attached Files
File Type: zip patchedfonts.zip (737.3 KB, 6991 views)
File Type: gz libfreetype6_2.1.10-1ubuntu2-turnerpatch0_i386.deb.gz (404.7 KB, 6086 views)
File Type: gz libfreetype6-dev_2.1.10-1ubuntu2-turnerpatch0_i386.deb.gz (662.3 KB, 5946 views)

Last edited by Pausanias; October 27th, 2006 at 05:27 PM.. Reason: Updated instructions
Pausanias is offline   Reply With Quote
Old May 22nd, 2006   #2
flargen
Gee! These Aren't Roasted!
 
Join Date: Jul 2005
Beans: 63
Re: HOWTO: quickly improve X11 font rendering

Hi, I was just about to try this when I realised that there are cairo packages. I use Xgl and quinn´s repo etc, which installed an updated cairo. Will it make any difference if I stick with my newer but not patched cairo packages?

Thanks for the guide + patches
flargen is offline   Reply With Quote
Old May 22nd, 2006   #3
grendelkhan
Quad Shot of Ubuntu
 
grendelkhan's Avatar
 
Join Date: Feb 2005
Location: Cincinnati, OH, USA
Beans: 144
Ubuntu 7.10 Gutsy Gibbon
Send a message via ICQ to grendelkhan Send a message via AIM to grendelkhan Send a message via MSN to grendelkhan Send a message via Yahoo to grendelkhan
Re: HOWTO: quickly improve X11 font rendering

I haven't been able to get these patches to apply without rejects to the cairo cvs (which is where Quinnstorm's packages come from)

Quinn hasn't put together source packages to apt-get grabs the 1.04 release instead.

I am waiting for the patch author to redo these to work with the 1.1 branch of cairo in cvs and then I'll grab it and go. I did apply these debs to my laptop (not running compiz) and the results are FABULOUS!
__________________
"If the real Jesus Christ were to stand up today
He'd be gunned down cold by the CIA"

- Armageddon Days are Here Again - The The
grendelkhan is offline   Reply With Quote
Old May 22nd, 2006   #4
nalthien
Way Too Much Ubuntu
 
Join Date: Apr 2006
Location: Atlanta, GA
Beans: 16
Edgy Eft Testing
Re: HOWTO: quickly improve X11 font rendering

I can confirm that cairo 1.0.4 patched here works with Xgl / Compiz.
nalthien is offline   Reply With Quote
Old May 22nd, 2006   #5
Novox
First Cup of Ubuntu
 
Novox's Avatar
 
Join Date: Sep 2005
Location: Bavaria, Germany
Beans: 4
Dapper Drake Testing/
Talking Re: HOWTO: quickly improve X11 font rendering

The screenshots look promising. Looks like these patches finally provide some decent sub-pixel rendering with FreeType.

Some x86_64/AMD64 debs would be great, though...
Novox is offline   Reply With Quote
Old May 22nd, 2006   #6
lithorus
Gee! These Aren't Roasted!
 
lithorus's Avatar
 
Join Date: Jan 2005
Location: Copenhagen, Denmark
Beans: 180
Ubuntu Karmic Koala (testing)
Re: HOWTO: quickly improve X11 font rendering

I'm using the quinstorm Xgl/cairo packages and everything looks good, nothing like the before picture. The trick is to set your DPI setting correctly in the Font configuration panel.

Here is my before picture :
http://ubuntuforums.org/attachment.p...1&d=1148339542
Attached Thumbnails
Click image for larger version

Name:	Screenshot.png
Views:	4590
Size:	28.6 KB
ID:	9875  

Last edited by lithorus; May 22nd, 2006 at 07:12 PM..
lithorus is offline   Reply With Quote
Old June 23rd, 2006   #7
wjarek
First Cup of Ubuntu
 
Join Date: Jun 2006
My beans are hidden!
Re: HOWTO: quickly improve X11 font rendering

I tried these and comparing with the clarity of Windows fonts Ubuntu is nowhere near. FC5 can be easily configured to match Windows, not sure why this is so hard on Ubuntu.
wjarek is offline   Reply With Quote
Old June 23rd, 2006   #8
hugmenot
100% Pure Ubuntu
 
Join Date: Mar 2006
My beans are hidden!
Re: HOWTO: quickly improve X11 font rendering

I see. Do you have a screenshot of that FC5 quality you speak of?
hugmenot is offline   Reply With Quote
Old May 22nd, 2006   #9
mikalh
A Carafe of Ubuntu
 
Join Date: Aug 2005
Location: Durham, UK
Beans: 16
The Feisty Fawn Testing
Re: HOWTO: quickly improve X11 font rendering

Here are some AMD64 packages. Had to do a manual merge of the Turner patch and an existing patch on Cairo, but it seems to work okay
Attached Files
File Type: bz2 libxft2_2.1.8.2-0turnerpatch0_amd64.tar.bz2 (114.6 KB, 363 views)
File Type: bz2 libcairo2_1.0.4-0turnerpatch0_amd64.tar.bz2 (890.5 KB, 342 views)
mikalh is offline   Reply With Quote
Old May 23rd, 2006   #10
panurge77
Ubuntu Extra Shot
 
panurge77's Avatar
 
Join Date: May 2006
My beans are hidden!
Gutsy Gibbon Testing
Re: HOWTO: quickly improve X11 font rendering

I've just installed these amd64 debs on top of quinns packages (downgrading them) and it's beautiful. Sadly my X has already restarted once, so there I go upgrading...
And I'll post on compiz forums for these changes do be considered

(some minutes later: I've posted on quinns package thred on compiz forums and it might take a while before there's an answer (looks like Quinn is away)... besides that, after the first restart X is running ok, at least for that couple minutes.... I'll leave it some more time before really doing the upgrade)
__________________
If others had not been foolish, we should be so.

Last edited by panurge77; May 23rd, 2006 at 12:51 AM..
panurge77 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 07:18 PM.


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