编辑 /etc/fonts/conf.d 下面的 49-sansserif.conf 文件
1.
sudo gedit /etc/fonts/conf.d/49-sansserif.conf
2.
<?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>
把红色粗体中的sans-serif
改成sans
就可以了。
Ubuntu访问flash网页中文字体变方块的解决方案
最新推荐文章于 2025-11-04 15:45:11 发布
本文指导您如何通过编辑/etc/fonts/conf.d/49-sansserif.conf文件,将Sans Serif字体更改为Sans字体。
1万+

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



