Lyncis.info

Lyncis Star Logo

HOWTO: QT font antialiasing under Gnome

This howto is about making QT4 fonts look like default GTK fonts in Gnome. This example about Ubuntu GNU/Linux, but should work on all Gnome systems. Saying simple, some applications (like Skype, Last.fm and others) looks a bit different (mmm… say ugly) under Gnome. That usually happens because these apps are using QT, and QT doesn’t know about your Gnome font settings — both engines store their own settings, and “hinting” (method, that makes fonts look great) method is different. But, fixing is simple.

Go to your home folder (/home/yourname/), and make file .fonts.conf (be carefult, it is dot in the beginning). If you’re using console it should look like following:

cd ~/
touch .fonts.conf

This goes to your home folder and creates desired file. Next, open this file with gedit or nano or vi or any editor you like:

nano ~/.fonts.conf

And put there next text:

<?xml version=”1.0″?>
<!DOCTYPE fontconfig SYSTEM “fonts.dtd”>
<fontconfig>
<match target=”font”>
<edit name=”rgba” mode=”assign”>
<const>rgb</const>
</edit>
</match>
<match target=”font”>
<edit name=”rgba” mode=”assign”>
<const>rgb</const>
</edit>
<edit name=”hinting” mode=”assign”>
<bool>true</bool>
</edit>
<edit name=”hintstyle” mode=”assign”>
<const>hintfull</const>
</edit>
</match>
</fontconfig>

… and restart your Last.fm or Skype or whatever you like! Should be great. See the screenshots — first showin my default Skype installation, and second — after apllying .fonts.conf.

Via Ubuntu Forums.

No Comments, Comment or Ping

Reply to “HOWTO: QT font antialiasing under Gnome”

Before you go

Going so soon? May these links be a guide to web enlightenment. Schwing!