网上搜了很多帖子,都是把宋体的英文部分替换为其他字体,而我恰恰很喜欢非粗体的宋体英文。琢磨很久后,在
/etc/fonts/language-selector.conf 里添加
代码: 全选
<match target="font">
<test name="family" compare="contains">
<string>宋体</string>
<string>新宋体</string>
<string>SimSun</string>
<string>NSimSun</string>
</test>
<test name="pixelsize" compare="less_eq" target="pattern">
<double>18</double>
</test>
<test name="weight" compare="less_eq" target="pattern">
<const>medium</const>
</test>
<edit name="hinting">
<bool>false</bool>
</edit>
<edit name="hintstyle">
<const>none</const>
</edit>
<edit name="autohint">
<bool>false</bool>
</edit>
<edit name="antialias" mode="assign">
<bool>false</bool>
</edit>
</match>
喜欢宋体且其显示有问题的朋友可以试试。