Skip to content

Instantly share code, notes, and snippets.

@wugh
Created November 9, 2013 15:05
Show Gist options
  • Save wugh/7386376 to your computer and use it in GitHub Desktop.
Save wugh/7386376 to your computer and use it in GitHub Desktop.
fontconfig file
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
Target dots per inch
-->
<match target="pattern">
<edit name="dpi" mode="assign" >
<double>96</double>
</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="assign" name="lcdfilter">
<const>lcddefault</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="rgba">
<const>rgb</const>
</edit>
</match>
<alias>
<family>serif</family>
<prefer>
<family>DejaVu Serif</family>
<family>Bitstream Vera Serif</family>
<family>Times New Roman</family>
<family>SimSun</family>
<family>AR PL New Sung</family>
<family>AR PL ShanHeiSun Uni</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer>
<family>Arial</family>
<family>Open Sans</family>
<family>Microsoft YaHei</family>
<family>WenQuanYi Micro Hei</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>PowerlineSymbols</family>
<family>Inconsolata</family>
<family>WenQuanYi Zen Hei Mono</family>
<family>WenQuanYi Micro Hei Mono</family>
<family>Arial Unicode MS</family>
</prefer>
</alias>
</fontconfig>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment