Wednesday, September 12, 2012

Pretty Fonts in Chrome with Linux

It's a bit incredible, but in 2012, some linux distros (like Fedora, or Kubuntu) still have trouble to have pretty fonts everywhere. I found a nice tip initially for Google Chrome but that seems to improve more than Chrome: create ~/.fonts.conf with the following:

[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]

replace [ and ] with brackets < and >

Update from 2013 - This can be done system wide, see http://chasethedevil.blogspot.com/2013/08/better-fonts-in-fedora-than-in-ubuntu.html

2 comments:

Martin Barge said...

Great tip - thanks! My fonts on Fedora LXDE look much better all round!!

Martin Barge said...

Great tip - thanks! All my fonts, on Fedora LXDE, look much prettier!