在使用Linux的时候你会遇到一些奇奇怪怪的问题,不过,你会在解决这些问题的过程当中就不知不觉都学到很多东西
比如说最近我把系统的一些包更新后,发现Chrome浏览器的标题栏的中文部分全部为乱码,但FireFox就没有这个问题
网上有人给出这个问题的解决是通过修改文件/etc/fonts/conf.d/49-sansserif.conf倒数第四行为自己喜欢的字体就行了,如我的改为ubuntu
[html]viewplaincopy在CODE上查看代码片派生到我的代码片
<?xmlversion="1.0"?>
<!DOCTYPEfontconfigSYSTEM"fonts.dtd">
<fontconfig>
<!--
Ifthefontstillhasnogenericname,addsans-serif
-->
<matchtarget="pattern">
<testqual="all"name="family"compare="not_eq">
<string>sans-serif</string>
</test>
<testqual="all"name="family"compare="not_eq">
<string>serif</string>
</test>
<testqual="all"name="family"compare="not_eq">
<string>monospace</string>
</test>
<editname="family"mode="append_last">
<string>ubuntu</string>
</edit>
</match>
</fontconfig>
但原理是什么呢?这是一个问题!!!