在/etc/fonts/conf.d目录下修改49-sansserif.conf
命令:
cd /etc/fonts/conf.d
sudo gedit 49-sansserif.conf
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>文泉驿正黑</string>(此处可以修改为其他你喜欢的字体)
</edit>
</match>
</fontconfig>
命令:
cd /etc/fonts/conf.d
sudo gedit 49-sansserif.conf
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>文泉驿正黑</string>(此处可以修改为其他你喜欢的字体)
</edit>
</match>
</fontconfig>