Saturday, May 26, 2012

Better fonts in Chrome For Linux

Make a file .fonts.conf in your home directory and add this to it:
<match target="font">
  <edit name="autohint" mode="assign">
      <bool>true</bool>
    </edit>
    <edit name="hinting" mode="assign">
      <bool>true</bool>
    </edit>
    <edit mode="assign" name="hintstyle">
      <const>hintslight</const>
   </edit>
</match>
Now, restart Chrome to see the changes.

1 comment:

  1. I've just started using Chromium in Slackware due to my aggravation with Firefox's CPU/RAM hogging tendencies and daily Flash crashes. Unfortunately, I was very dissatisfied with Chromium's font rendering. It is terrible in Linux. Thankfully, your little solution above worked 100%. I made a small change from "slight" to "none" with regards to hinting, but other than that it works wonderfully well.

    Thank you, Aatish! :)

    Regards,

    V. T. Eric Layton (aka Nocturnal Slacker, vtel57)

    ReplyDelete