[Ubuntu] google chrome乱码

问题描述

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!

posted @ 2014-07-06 22:42  DavidHHuan  阅读(878)  评论(0编辑  收藏  举报