Skip to content

Instantly share code, notes, and snippets.

@yeban
Created May 16, 2010 16:47
Show Gist options
  • Save yeban/402984 to your computer and use it in GitHub Desktop.
Save yeban/402984 to your computer and use it in GitHub Desktop.
.fonts.conf file for rendering fonts beautifully (like Ubuntu). Tested on a Debian box.
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font" >
<edit mode="assign" name="autohint" >
<bool>true</bool>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="rgba" >
<const>none</const>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="hinting" >
<bool>false</bool>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="hintstyle" >
<const>hintnone</const>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="antialias" >
<bool>true</bool>
</edit>
</match>
</fontconfig>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment