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的中文就能正常显示了。

  • 相关阅读:
    AI CV 会议2018
    ubuntu 更改默认亮度
    ubuntu安装latex
    过滤文件代码 python
    ubuntu安装pycharm桌面快捷方式
    Ubuntu 14.04 鼠标消失解决方案
    ffmpeg常用命令
    FFMPEG 在ubuntu下的安装与使用
    pragma once
    chrono--高精度计时
  • 原文地址:https://www.cnblogs.com/fincod/p/3766824.html
Copyright © 2011-2022 走看看