Created
January 17, 2014 08:58
-
-
Save codescv/8470342 to your computer and use it in GitHub Desktop.
fonts.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version='1.0'?> | |
<!-- GistID: 8470342 --> | |
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> | |
<fontconfig> | |
<match target="font"> | |
<edit mode="assign" name="rgba"> | |
<const>rgb</const> | |
</edit> | |
</match> | |
<match target="font"> | |
<edit mode="assign" name="hinting"> | |
<bool>true</bool> | |
</edit> | |
</match> | |
<match target="font"> | |
<edit mode="assign" name="hintstyle"> | |
<const>hintslight</const> | |
</edit> | |
</match> | |
<match target="font"> | |
<edit mode="assign" name="antialias"> | |
<bool>true</bool> | |
</edit> | |
</match> | |
<match target="font"> | |
<edit mode="append" name="lcdfilter"> | |
<const>lcddefault</const> | |
</edit> | |
</match> | |
<!-- DejaVu Sans Mono font hack --> | |
<match target="font"> | |
<test name="family"> | |
<string>DejaVu Sans Mono</string> | |
</test> | |
<test compare="more" name="pixelsize"> | |
<double>7.5</double> | |
</test> | |
<test compare="less" name="size"> | |
<double>14</double> | |
</test> | |
<edit mode="assign" name="autohint"> | |
<bool>true</bool> | |
</edit> | |
</match> | |
<match target="font"> | |
<test name="weight" compare="more"> | |
<const>medium</const> | |
</test> | |
<edit name="autohint" mode="assign"> | |
<bool>false</bool> | |
</edit> | |
</match> | |
<!-- 中文字体 --> | |
<match target="font"> | |
<test name="family" compare="contains" > | |
<string>WenQuanYi Zen Hei</string> | |
<string>Song</string> | |
<string>Sun</string> | |
<string>Kai</string> | |
<string>Ming</string> | |
</test> | |
<edit mode="assign" name="hinting"> | |
<bool>true</bool> | |
</edit> | |
<edit mode="assign" name="autohint"> | |
<bool>true</bool> | |
</edit> | |
<edit mode="assign" name="hintstyle"> | |
<const>hintmedium</const> | |
</edit> | |
</match> | |
</fontconfig> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment