Ugly font after KDE installation

You all know the nice default font that come with Ubuntu, right? I just wanted to play a little bit with Kubuntu and installed the meta package

kubuntu-desktop

Everything was fine, however the font is now ugly as hell. Not only on KDE, but also on Gnome, Unity etc.

Example: enter image description here

How can I get the default font config back?


Looks like you have to to disable font hinting, either through GNOME/KDE settings or by putting the following in ~/.fonts.conf (create the file if it doesn't exist):

<match target="font">
  <edit name="hinting" mode="assign">
    <bool>false</bool>
  </edit>
</match>

This is configurable because some people prefer crispier look reminiscent of Windows XP.


In your home folder, rename .fonts.conf to .fonts.conf.bak then log out. Log back in and the fonts in Firefox are good to go.