`
plkong
  • 浏览: 173162 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

ubuntu8.04中firefox中flash有时出现乱码解决办法

阅读更多

今天用firefox看个flash视频教程,出现了乱码问题,通过网络查阅资料现把解决办法做下总结,

1. cd到目录 /etc/fonts/conf.d/

2. 备份49-sansserif.conf文件,因为我们等下要修改此文件

    sudo cp 49-sansserif.conf 49-sansserif.conf_backup

3. 修改49-sansserif.conf文件

   sudo gedit 49-sansserif.conf

   默认情况下系统自带了“文泉驿正黑”字体,所以我们也就不需要去找其他字体直接使用它。修改后的文件如下:

<?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>文泉驿正黑</string>
        </test>
        <test qual="all" name="family" compare="not_eq">
            <string>文泉驿正黑</string>
        </test>
        <test qual="all" name="family" compare="not_eq">
            <string>monospace</string>
        </test>
        <edit name="family" mode="append_last">
            <string>文泉驿正黑</string>
        </edit>
    </match>
</fontconfig>

 

4. 修改好配置文件后,重新启动firefox,还是乱码的话,那就需要注销当前用户或重启电脑。

 

3
0
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics