Ugly Chromium fonts in Debian Xfce

12 November 2014 linux

With some struggle is possible to fix Debian Xfce fonts, but in Chromium they remain ugly. With a drastic move I decided to substitute the entire /etc/fonts directory with the Xubuntu one.

For direct comparison I take some screenshots of Chromium before and after the mod. First example is taken from “Google News”: the relatively small font size highlights the bad rendering of the original config.

Google news

Google news

The second example is taken from “Punto Informatico” (an italian tech site). The serif font used in titles is pitiless to point out the flaw.

Punto Informatico

Punto Informatico

The difference is clear. I don’t know if is needed to copy all the files or if copy someone specific is enough, but I didn’t check because after a change the X server must be restarted to see the effect. As a note in the Debian /etc/fonts/conf.d/ directory there are 13 files while in the Xubuntu one there are 82!

A litte thing to fix: starting any program from terminal I receive some error messages:

Fontconfig error: "/etc/fonts/conf.d/65-khmer.conf", line 14: out of memory
Fontconfig error: "/etc/fonts/conf.d/65-khmer.conf", line 23: out of memory
Fontconfig error: "/etc/fonts/conf.d/65-khmer.conf", line 32: out of memory

It’s not a real error, the programs continue to run normally, but I preferred to get rid of this annoyance deleting the /etc/fonts/conf.d/65-khmer.conf file because I will never write in cambodian.

Evidently no one between Debian’s developers use or test Chromium in Xfce.