• 问:Linux下Chrome标题栏中文乱码


    From:http://blog.csdn.net/loveaborn/article/details/29579787

    在使用Linux的时候你会遇到一些奇奇怪怪的问题,不过,你会在解决这些问题的过程当中就不知不觉都学到很多东西

    比如说最近我把系统的一些包更新后,发现Chrome浏览器的标题栏的中文部分全部为乱码,但FireFox就没有这个问题

    网上有人给出这个问题的解决是通过修改文件/etc/fonts/conf.d/49-sansserif.conf倒数第四行为自己喜欢的字体就行了,如我的改为ubuntu

    [html] view plaincopy在CODE上查看代码片派生到我的代码片
     
    1. <?xml version="1.0"?>  
    2. <!DOCTYPE fontconfig SYSTEM "fonts.dtd">  
    3. <fontconfig>  
    4. <!-- 
    5.   If the font still has no generic name, add sans-serif 
    6.  -->  
    7.     <match target="pattern">  
    8.         <test qual="all" name="family" compare="not_eq">  
    9.             <string>sans-serif</string>  
    10.         </test>  
    11.         <test qual="all" name="family" compare="not_eq">  
    12.             <string>serif</string>  
    13.         </test>  
    14.         <test qual="all" name="family" compare="not_eq">  
    15.             <string>monospace</string>  
    16.         </test>  
    17.         <edit name="family" mode="append_last">  
    18.             <string>ubuntu</string>  
    19.         </edit>  
    20.     </match>  
    21. </fontconfig>  


    但原理是什么呢?这是一个问题!!!

  • 相关阅读:
    R语言在最后一行追加字符
    linux系统中将每行特定数目字符后的字符替换为指定字符
    设定到那个层级上
    uv 一些常用
    编辑控件
    渲染点显示的 帮助
    直线y=x
    dotNetControl PictrueBox
    控件表
    颜色的东西
  • 原文地址:https://www.cnblogs.com/frydsh/p/4145293.html
Copyright © 2020-2023  润新知