Page 1 of 1

Howto: Ubuntu's cleartype in Fedora.

Posted: Sun Nov 08, 2009 10:58 pm
by tylerwylie
I've stumbled upon a person building packages for Fedora that include Cairo/libXft's LCD filter setting to get impressive Cleartype-like fonts. To get the optimal settings I build from the SRC RPM's he provided and copied over some settings.

Here is the web page, I pulled my packages from here.
http://www.infinality.net/blog/?p=5
SRC RPMS: http://www.infinality.net/fedora/linux/12/SRPMS/

First off, install rpmdevtools, freetype-freeworld from RPMFusion and the required development packages

Code: Select all

yum install rpmdevtools libXrender-devel freetype-devel freetype-freeworld pkgconfig libX11-devel libpng-devel libxml2-devel pixman-devel fontconfig-devel
Afterwards install the src RPMs you have downloaded via rpm -Uvh.

Then, build the rpms.

Code: Select all

cd ~/rpmbuild/SPECS
rpmbuild -ba cairo-freeworld.spec
rpmbuild -ba libXft-freeworld.spec
cd ../RPMS/{either x86_64 or i386}/
rpm -Uvh cairo-freeworld-1.8.8-3.fc11.x86_64.rpm libXft-freeworld-2.1.14-1.fc11.x86_64.rpm
Now the new packages are built and installed, the next step is tweaking. I have a series of config files located here: http://omploader.org/vMm9vOQ/fonts-conf.d.tar.gz that you can use to get similar settings to Ubuntu.

I moved my /etc/fonts/conf.d directory to a backup directory, pulled the conf.d directory from that archive, and moved it into /etc/fonts

When that is done, logout and log back in and you should have beautiful Ubuntu fonts with no Ubuntu aftertaste.