Skip to content

Instantly share code, notes, and snippets.

@medicalwei
Last active September 24, 2015 21:47
Show Gist options
  • Save medicalwei/814056 to your computer and use it in GitHub Desktop.
Save medicalwei/814056 to your computer and use it in GitHub Desktop.
medicalwei's ~/.fonts.conf
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<match target="pattern">
<test name="family" qual="any">
<string>serif</string>
</test>
<edit binding="strong" mode="prepend" name="family">
<string>Bitstream Vera Serif</string>
<string>DejaVu Serif</string>
<string>AR PL UMing TW</string>
<string>AR PL UMing TW MBE</string>
<string>AR PL UMing HK</string>
<string>AR PL UMing CN</string>
<string>PMingLiU</string>
</edit>
</match>
<match target="pattern">
<test name="family" qual="any">
<string>sans-serif</string>
</test>
<edit binding="strong" mode="prepend" name="family">
<string>Source Sans Pro</string>
<string>Source Han Sans TWHK</string>
<string>Source Han Sans</string>
<string>Noto Color Emoji</string>
<string>Bitstream Vera Sans</string>
<string>DejaVu Sans</string>
<string>WenQuanYi Zen Hei</string>
<string>AR PL UMing TW</string>
<string>AR PL ShanHeiSun Uni</string>
<string>WenQuanYi Bitmap Song</string>
<string>AR PL UKai TW</string>
<string>AR PL ZenKai Uni</string>
</edit>
</match>
<match target="pattern">
<test name="family" qual="any">
<string>monospace</string>
</test>
<edit binding="strong" mode="prepend" name="family">
<string>Source Code Pro</string>
<string>Source Han Sans TWHK</string>
<string>Source Han Sans</string>
<string>Noto Color Emoji</string>
</edit>
</match>
<!--
<match target="font">
<edit mode="assign" name="rgba">
<const>rgb</const>
</edit>
<edit name="hinting">
<bool>true</bool>
</edit>
<edit mode="assign" name="hintstyle">
<const>hintfull</const>
</edit>
</match>
<match target="font">
<test name="family" qual="any">
<string>Source Han Sans TWHK</string>
<string>Source Han Sans</string>
</test>
<edit name="hinting">
<bool>false</bool>
</edit>
</match>
<match target="font">
<test name="family">
<string>Helvetica Neue</string>
</test>
<edit name="hinting">
<bool>false</bool>
</edit>
</match>
<match target="font">
<test name="family">
<string>MingLiU</string>
</test>
<edit name="hinting">
<bool>true</bool>
</edit>
</match>
<match target="font">
<test name="family">
<string>PMingLiU</string>
</test>
<edit name="hinting">
<bool>true</bool>
</edit>
</match>
<dir>~/.fonts</dir>
<match target="font">
<edit mode="assign" name="rgba">
<const>rgb</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="hinting">
<bool>false</bool>
</edit>
</match>
<match target="font">
<edit mode="assign" name="hintstyle">
<const>hintnone</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="antialias">
<bool>true</bool>
</edit>
</match>
-->
</fontconfig>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment