问题描述
ubuntu14.04,之前google chrome一直都是好好的,升级过相关软件,之后就是乱码了,如图
经过google的努力,找到解决方法,原因未明。
解决方案
sudo /etc/fonts/conf.d/49-sansserif.conf
将第一个sans-serif改为ubuntu就好了。
修改后的内容如下:
<?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>ubuntu</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>
Have fun with Ubuntu!