Skip to content

Instantly share code, notes, and snippets.

@w0ng
Created November 5, 2012 13:23
Show Gist options
  • Save w0ng/4017159 to your computer and use it in GitHub Desktop.
Save w0ng/4017159 to your computer and use it in GitHub Desktop.
infinality override
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<!-- ##Style: common -->
<!-- OVERRIDE SETTINGS -->
<!-- Full autohint -->
<!-- Makes vertical/horizontal stems align to pixels, but is not true to the glyphs -->
<!-- Some glyphs may look forced into place, however they are very sharp -->
<match target="font">
<test name="family">
<string>PragmataPro</string>
</test>
<edit name="hinting" mode="assign">
<bool>true</bool>
</edit>
<edit name="autohint" mode="assign">
<bool>false</bool>
</edit>
<edit name="antialias" mode="assign">
<bool>false</bool>
</edit>
<edit name="hintstyle" mode="assign">
<const>hintfull</const>
</edit>
</match>
<!--<match target="font">
<test name="family">
<string>FONT NAME HERE</string>
</test>
<edit name="hinting" mode="assign">
<bool>true</bool>
</edit>
<edit name="autohint" mode="assign">
<bool>true</bool>
</edit>
<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>
<edit name="hintstyle" mode="assign">
<const>hintfull</const>
</edit>
</match>-->
<!-- OVERRIDE SETTINGS -->
<!-- Light autohint on italics -->
<!-- Use for anything that is full auto or TT hinted above -->
<!--<match target="font">
<test name="family">
<string>FONT NAME HERE</string>
</test>
<test target="pattern" name="slant" compare="not_eq">
<const>roman</const>
</test>
<edit name="hinting" mode="assign">
<bool>true</bool>
</edit>
<edit name="autohint" mode="assign">
<bool>true</bool>
</edit>
<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>
<edit name="hintstyle" mode="assign">
<const>hintslight</const>
</edit>
</match>-->
</fontconfig>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment