寫入 ~/.config/fontconfig/fonts.conf
,確定你安裝了其中的字型
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<!-- 預設字型設定 -->
<match target="pattern">
<test qual="any" name="family">
<string>sans-serif</string>
</test>
<edit mode="prepend" name="family" binding="strong">
<string>Noto Sans CJK SC</string>
<string>WenQuanYi Micro Hei</string>
<string>Source Han Sans CN</string>
<string>Microsoft YaHei</string>
<string>SimSun</string>
</edit>
</match>
<!-- 襯線字型設定 -->
<match target="pattern">
<test qual="any" name="family">
<string>serif</string>
</test>
<edit mode="prepend" name="family" binding="strong">
<string>Noto Serif CJK SC</string>
<string>Source Han Serif CN</string>
<string>SimSun</string>
<string>AR PL UMing CN</string>
</edit>
</match>
<!-- 等寬字型設定 -->
<match target="pattern">
<test qual="any" name="family">
<string>monospace</string>
</test>
<edit mode="prepend" name="family" binding="strong">
<string>Noto Sans Mono CJK SC</string>
<string>WenQuanYi Micro Hei Mono</string>
<string>Source Han Mono SC</string>
<string>SimSun</string>
</edit>
</match>
<!-- 中文字型微調 -->
<match target="font">
<test compare="contains" name="lang">
<string>zh</string>
</test>
<edit mode="assign" name="antialias">
<bool>true</bool>
</edit>
<edit mode="assign" name="hinting">
<bool>true</bool>
</edit>
<edit mode="assign" name="hintstyle">
<const>hintslight</const>
</edit>
<edit mode="assign" name="autohint">
<bool>false</bool>
</edit>
</match>
</fontconfig>
執行
fc-cache -fv