Improve Fonts in Chrome in CentOS 6
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.
- Open the file
.fonts.conf
in your home directory, if it does not exist create it:
$ touch ~/.fonts.conf
- 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>
- Log out completely from Gnome (reboot not required).
Before and After
Posted in: CentOS, Desktop, Red Hat,
3 Comments:
michiwend on June 11, 2012 - 06:06 AM
finally a solution that works! thank you :)
Philby on June 21, 2012 - 07:07 AM
Excellent fix! Works for my FC12 distro as well.
Thanks for the post.BosaMisteriosa on December 14, 2012 - 07:07 AM
Genius ! Very well in Fedora 17.Thanks :-)