Skip to content

Instantly share code, notes, and snippets.

@tyan-boot
Created July 25, 2017 08:44
Show Gist options
  • Save tyan-boot/b4748605d708ed8d3f0cc28b7a07001b to your computer and use it in GitHub Desktop.
Save tyan-boot/b4748605d708ed8d3f0cc28b7a07001b to your computer and use it in GitHub Desktop.
字体配置
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<!-- created by WenQuanYi FcDesigner v0.5 -->
<match>
<test name="family">
<string>sans-serif</string>
</test>
<edit name="family" binding="strong" mode="prepend">
<string>WenQuanYi Micro Hei</string>
</edit>
</match>
<match>
<test name="family">
<string>monospace</string>
</test>
<edit name="family" binding="strong" mode="prepend">
<string>Consolas</string>
<string>WenQuanYi Micro Hei Mono</string>
</edit>
<edit name="style" binding="strong" mode="prepend">
<string></string>
</edit>
</match>
<match>
<test name="family">
<string>serif</string>
</test>
<edit name="family" binding="strong" mode="prepend">
<string>WenQuanYi Micro Hei</string>
</edit>
</match>
<match target="font">
<!-- 开启抗锯齿(smooth) -->
<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>
<!-- 优先使用内嵌微调,同时默认开足微调 -->
<edit name="hinting">
<bool>true</bool>
</edit>
<edit name="autohint">
<bool>false</bool>
</edit>
<!-- LCD特征设置 -->
<edit name="rgba">
<const>rgb</const>
</edit>
<edit name="lcdfilter">
<const>lcddefault</const>
</edit>
<!-- 禁用内嵌点阵 -->
<edit name="embeddedbitmap">
<bool>false</bool>
</edit>
<!-- 禁用合成粗体 -->
<edit name="embolden">
<bool>false</bool>
</edit>
</match>
<dir>~/.fonts</dir>
</fontconfig>
@tyan-boot
Copy link
Author

Downloa wqy-microhei, optional, copy Consolas font from somewhere else

then put this file into ~/.config/fontconfig/fonts.conf

then execute fc-cache -vf

after doing above, your fonts will be look like better.

These fonts config is only for zh_CN users

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment