Skip to content

Instantly share code, notes, and snippets.

@zmack
Created January 13, 2009 16:26
Show Gist options
  • Save zmack/46508 to your computer and use it in GitHub Desktop.
Save zmack/46508 to your computer and use it in GitHub Desktop.
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/local.conf file to configure system font access -->
<fontconfig>
<!-- Use the Autohinter -->
<match target="font">
<edit name="autohint" mode="assign"><bool>true</bool></edit>
</match>
<!-- Disable Autohinting for bold fonts -->
<match target="font">
<test name="weight" compare="more"><const>medium</const></test>
<edit name="autohint" mode="assign"><bool>false</bool></edit>
</match>
<!-- Enable sub-pixel rendering -->
<match target="font">
<edit name="rgba" mode="assign"><const>rgb</const></edit>
</match>
<!-- Exclude/Include a range of fonts for Anti Aliasing -->
<!--
<match target="font">
<test qual="any" name="size" compare="more"><double>9</double></test>
<test qual="any" name="size" compare="less"><double>14</double></test>
<edit name="antialias" mode="assign"><bool>true</bool></edit>
</match>
-->
<!-- And/Or disable Anti Aliasing for a range on pixel-based size.
Disabling this using both methods seems to fix Firefox. -->
<!--
<match target="font">
<test compare="less" name="pixelsize" qual="any"><double>10</double></test>
<edit mode="assign" name="antialias"><bool>false</bool></edit>
</match>
-->
<!-- Other config options that were added to previous versions of config files in the Gentoo Wiki HOWTO.
Need clarification. -->
<match target="font">
<edit name="hinting" mode="assign"><bool>true</bool></edit>
<edit name="hintstyle" mode="assign"><const>hintfull</const></edit>
</match>
</fontconfig>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment