Skip to content

Instantly share code, notes, and snippets.

@junmakii
Last active August 29, 2015 13:55
Show Gist options
  • Select an option

  • Save junmakii/8726667 to your computer and use it in GitHub Desktop.

Select an option

Save junmakii/8726667 to your computer and use it in GitHub Desktop.
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- Default fonts - Linux Appearance -->
<alias>
<family>sans-serif</family>
<prefer>
<family>DejaVu Sans</family>
</prefer>
</alias>
<alias>
<family>serif</family>
<prefer>
<family>Liberation Serif</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>Liberation Mono</family>
</prefer>
</alias>
<!-- Default fonts - OSX Appearance -->
<!--
<alias>
<family>sans-serif</family>
<prefer>
<family>Lucida Grande</family>
</prefer>
</alias>
<alias>
<family>serif</family>
<prefer>
<family>Times</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>Courier</family>
</prefer>
</alias>
-->
<!-- osx 1
<match target="font">
<edit name="rgba" mode="assign">
<const>rgb</const>
</edit>
<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>
<edit name="lcdfilter" mode="assign">
<const>lcddefault</const>
</edit>
</match>
-->
<match target="font">
<edit name="rgba" mode="assign">
<const>rgb</const>
</edit>
<edit name="hinting" mode="assign">
<bool>false</bool>
</edit>
<edit name="autohint" mode="assign">
<bool>false</bool>
</edit>
<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>
<edit name="hintstyle" mode="assign">
<const>hintnone</const>
</edit>
<edit name="lcdfilter" mode="assign">
<const>lcddefault</const>
</edit>
<!--<edit name="embolden" mode="assign"><bool>true</bool></edit>-->
</match>
<match target="font">
<test name="font_type">
<string>TT Instructed Font</string>
</test>
<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>
<edit name="hintstyle" mode="assign">
<const>hintnone</const>
</edit>
<edit name="autohint" mode="assign">
<bool>true</bool>
</edit>
</match>
<match target="font">
<test name="font_type">
<string>NON TT Instructed Font</string>
</test>
<edit name="autohint" mode="assign">
<bool>true</bool>
</edit>
<edit name="hintstyle" mode="assign">
<const>hintslight</const>
</edit>
<edit name="hinting" mode="assign">
<bool>true</bool>
</edit>
<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>
</match>
<!--
<match target="font">
<test name="weight" compare="less_eq">
<const>medium</const>
</test>
<edit name="family" mode="prepend" binding="strong">DejaVu Sans</edit>
<edit name="family" mode="prepend" binding="strong">
<string>Helvetica</string>
</edit>
</match>
<match target="font">
<test name="weight" compare="more">
<const>medium</const>
</test>
</match>
-->
<match>
<test name="lang" compare="contains">
<string>cn</string>
</test>
<edit name="family" mode="prepend">
<string>WenQuanYi Zen Hei</string>
</edit>
</match>
</fontconfig>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment