Warning: Creating default object from empty value in /home/mirandam/public_html/linux/wp-includes/functions.php on line 292
Fedora, Linux and Stuff :: Improve Fonts in Chrome in CentOS 6

Improve Fonts in Chrome in CentOS 6

Tuesday, December 6th, 2011 ~ 10:33 pm by Mauriat Miranda

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

3 Responses to “Improve Fonts in Chrome in CentOS 6”

  1. michiwend Says:

    finally a solution that works! thank you :)

  2. Philby Says:

    Excellent fix! Works for my FC12 distro as well.
    Thanks for the post.

  3. BosaMisteriosa Says:

    Genius ! Very well in Fedora 17.Thanks :-)

Please leave a reply only if you wish to comment on this particular entry. If you wish to contact me directly, please DO NOT do it here. Instead use my contact page.

Bot-Check