输入命令:
sudo gedit /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 >
<?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>
将上面的 <string>sans-serif</string>
改为 <string>sans</string>
本文介绍如何编辑 Linux 系统中的字体配置文件 /etc/fonts/conf.d/49-sansserif.conf,通过修改 XML 格式的文件内容来调整默认字体设置。具体操作包括使用 gedit 打开文件,并将特定字符串从 'sans-serif' 更改为 'sans'。
2870

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



