zoukankan      html  css  js  c++  java
  • [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!

  • 相关阅读:
    2017.5.8下午
    2017.5.8上午
    2017.5.5下午
    2017.5.5上午
    2017.5.4下午
    WPF DataGrid LoadingRow style 滚动失效
    centos nginx 环境变量
    Kettle-03-定时转换
    Kettle-02-转换
    Kettle-01-安装(CentOS 7 离线)
  • 原文地址:https://www.cnblogs.com/davidhhuan/p/3828716.html
Copyright © 2011-2022 走看看