问题 :RT
解决办法 :修改/etc/fonts/conf.d/49-sansserif.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
If the font still has no generic name, add sans-serif
-->
<match target="pattern">
<test qual="all" name="family" compare="not_eq">
<string>sans-serif</string>
</test>
<test qual="all" name="family" compare="not_eq">
<string>serif</string>
</test>
<test qual="all" name="family" compare="not_eq">
<string>monospace</string>
</test>
<edit name="family" mode="append_last">
<string>sans-serif</string>
</edit>
</match>
</fontconfig>
其中的edit节点下的string节点的值改为:sans
修改后的结果如下:
<edit name="family" mode="append_last">
<string>sans</string>
</edit>
原因 :未知
扩展 :sans Serif 与 Serif 的区别(网页、海报等设计):http://www.shocr.com/serif-vs-sans-serif/
本文介绍了一种解决Linux系统中字体显示异常的方法,通过修改配置文件中的特定节点,可以将默认的'sans-serif'更改为'sans',从而改善系统的字体渲染效果。

被折叠的 条评论
为什么被折叠?



