<dir>/usr/share/fonts</dir> <dir>/usr/local/share/fonts</dir> <dirprefix="xdg">fonts</dir> <!-- the following element will be removed in the future --> <dir>~/.fonts</dir>
<!-- 中文默认字体使用思源黑体和思源宋体,不使用 Noto Sans CJK SC 是因为这个字体会在特定情况下显示片假字. --> <match> <testname="lang"compare="contains"> <string>zh</string> </test> <testname="family"> <string>serif</string> </test> <editname="family"mode="prepend"> <string>Source Han Serif CN</string> </edit> </match> <match> <testname="lang"compare="contains"> <string>zh</string> </test> <testname="family"> <string>sans-serif</string> </test> <editname="family"mode="prepend"> <string>Source Han Sans CN</string> </edit> </match> <match> <testname="lang"compare="contains"> <string>zh</string> </test> <testname="family"> <string>monospace</string> </test> <editname="family"mode="prepend"> <string>Noto Sans Mono CJK SC</string> </edit> </match>
<!-- Windows & Linux Chinese fonts. --> <!-- 把所有常见的中文字体映射到思源黑体和思源宋体,这样当这些字体未安装时会使用思源黑体和思源宋体. 解决特定程序指定使用某字体,并且在字体不存在情况下不会使用fallback字体导致中文显示不正常的情况. --> <matchtarget="pattern"> <testqual="any"name="family"> <string>WenQuanYi Zen Hei</string> </test> <editname="family"mode="assign"binding="same"> <string>Source Han Sans CN</string> </edit> </match> <matchtarget="pattern"> <testqual="any"name="family"> <string>WenQuanYi Micro Hei</string> </test> <editname="family"mode="assign"binding="same"> <string>Source Han Sans CN</string> </edit> </match> <matchtarget="pattern"> <testqual="any"name="family"> <string>WenQuanYi Micro Hei Light</string> </test> <editname="family"mode="assign"binding="same"> <string>Source Han Sans CN</string> </edit> </match> <matchtarget="pattern"> <testqual="any"name="family"> <string>Microsoft YaHei</string> </test> <editname="family"mode="assign"binding="same"> <string>Source Han Sans CN</string> </edit> </match> <matchtarget="pattern"> <testqual="any"name="family"> <string>SimHei</string> </test> <editname="family"mode="assign"binding="same"> <string>Source Han Sans CN</string> </edit> </match> <matchtarget="pattern"> <testqual="any"name="family"> <string>SimSun</string> </test> <editname="family"mode="assign"binding="same"> <string>Source Han Serif CN</string> </edit> </match> <matchtarget="pattern"> <testqual="any"name="family"> <string>SimSun-18030</string> </test> <editname="family"mode="assign"binding="same"> <string>Source Han Serif CN</string> </edit> </match>
<!-- Load local system customization file --> <includeignore_missing="yes">conf.d</include>
<!-- Font cache directory list -->
<cachedir>/var/cache/fontconfig</cachedir> <cachedirprefix="xdg">fontconfig</cachedir> <!-- the following element will be removed in the future --> <cachedir>~/.fontconfig</cachedir>
<config> <!-- Rescan configuration every 30 seconds when FcFontSetList is called --> <rescan> <int>30</int> </rescan> </config> </fontconfig>