zoukankan      html  css  js  c++  java
  • Fedora20 和ubuntu 14.04 chrome标签中文乱码

    作为两个流行的桌面发行版本,Fedora和ubuntu最新版本都存在chrome标签中文乱码问题。

    下面是解决办法,都来自百度贴吧。

    1.ubuntu 系列:

      解决办法就是:

        编辑/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>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>

      2.fedora这样更改不成功,正确办法是卸载google-dorid字体,或者删除和隐藏字体文件夹。

       

    cd /usr/share/fonts/
    mv google-droid/ .goole-droid

    OK,chrome的中文就能正常显示了。

  • 相关阅读:
    设计模式之Singleton(单态)(转)
    shell编程与循环
    连接查询、视图、事务、索引、外键
    mariadb主从架构
    Lvs虚拟服务器
    python字符串详解
    firewalld防火墙详解
    自动化运维ansible用法
    元组、列表、字典、集合
    内置函数for、while循环控制
  • 原文地址:https://www.cnblogs.com/fincod/p/3766824.html
Copyright © 2011-2022 走看看