Improve Fonts in Chrome in CentOS 6
Tuesday, December 6th, 2011 ~ 10:33 pm
I am currently running the latest version of Firefox (8.0) and Google Chrome (15.0.874.121) in CentOS 6 64-bit using the Gnome 2.28 desktop.
Both work fine, however Firefox renders fonts significantly better than Chrome.
The Fix: The following steps fix the problem.
1. Open the file .fonts.conf in your home directory, if it does not exist create it:
$ touch ~/.fonts.conf
2. Add the following contents to the file:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
<edit name="autohint" mode="assign">
<bool>true</bool>
</edit>
</match>
</fontconfig>
3. Log out completely from Gnome (reboot not required).
Before and After

