Compare Fedora's default fonts with Ubuntu's here and here. If you want the smoothness of Ubuntu's LCD subpixel rendering in F11 then this post is for you.
This is basically a simple "cheat" version for F11 of Breb's original thread, that thread has links to some excellent resources and info if you want to really understand what's going on.
UPDATE: directfb and xcb-util packages must be installed, check by doing: 'yum install directfb xcb-util'
0. In your home directory create a file named .Xresources (don't forget the dot) with this line:
Code:
Xft.lcdfilter: lcddefault
1. Now, as root, create a directory for the libs that we will replace, and backup the current libs:
Code:
su -
mkdir -p ufonts/fedora
cd ufonts
cp -a /usr/lib/lib{cairo,freetype,pixman,Xft}* fedora/
(For x86_64, replace /usr/lib/ by /usr/lib64/ in the above and everywhere below)
2. Extract the required ubuntu libs from these debian packages, libcairo2, libfreetype6, libxft2, libpixman-1-0
or just unpack one of these tarballs 32bit libs, 64bit libs
so that you have these libs in ufonts/ (64bit sizes will be larger):
Code:
$ ls -l
...
drwxrwxr-x. 2 user user 4096 2009-06-25 20:37 fedora
-rw-r--r--. 1 user user 494036 2009-02-14 00:47 libcairo.so.2.10800.6
-rw-r--r--. 1 user user 480644 2009-04-23 13:26 libfreetype.so.6.3.20
-rw-r--r--. 1 user user 284892 2009-04-29 18:03 libpixman-1.so.0.14.0
-rw-r--r--. 1 user user 75704 2009-02-27 04:22 libXft.so.2.1.13
3. Create a few symbolic links to solve lib dependencies in libcairo (x86_64 users specify /usr/lib64/):
Code:
ln -s /usr/lib/libdirect-1.2.so.0 /usr/lib/libdirect-1.0.so.0
ln -s /usr/lib/libdirectfb-1.2.so.0 /usr/lib/libdirectfb-1.0.so.0
ln -s /usr/lib/libfusion-1.2.so.0 /usr/lib/libfusion-1.0.so.0
4. Now boot into text mode (append 1 or 3 to the grub boot line by hitting 'a' at the grub boot screen) and as root copy the libs over (x86_64 users specify /usr/lib64/):
Code:
cp /root/ufonts/lib* /usr/lib/
And that's it, reboot, login and you should see much smoother fonts. If not, open System->Preferences->Appearance->Fonts and ensure Subpixel smoothing (LCDs) is selected, and in Details choose 'Slight' Hinting.
Check the filter and hinting is enabled with xrdb -query:
Code:
$ xrdb -query
Xcursor.size: 24
Xcursor.theme: Bluecurve
Xcursor.theme_core: true
Xft.antialias: 1
Xft.dpi: 96
Xft.hinting: 1
Xft.hintstyle: hintslight
Xft.lcdfilter: lcddefault
Xft.rgba: rgb