Skip to content

Instantly share code, notes, and snippets.

@bldewolf
Created November 6, 2013 23:25
Show Gist options
  • Save bldewolf/7346075 to your computer and use it in GitHub Desktop.
Save bldewolf/7346075 to your computer and use it in GitHub Desktop.
Fontconfig that turns on hinting and subpixel stuff
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<match target="pattern">
<edit mode="append" name="autohint">
<bool>false</bool>
</edit>
</match>
<match target="pattern">
<edit mode="append" name="rgba">
<const>rgb</const>
</edit>
</match>
<match target="pattern">
<edit mode="append" name="hinting">
<bool>true</bool>
</edit>
</match>
<match target="pattern">
<edit mode="append" name="hintstyle">
<const>hintfull</const>
</edit>
</match>
<match target="pattern">
<edit mode="append" name="antialias">
<bool>true</bool>
</edit>
</match>
<match target="pattern">
<edit mode="append" name="lcdfilter">
<const>lcddefault</const>
</edit>
</match>
</fontconfig>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment