百度空间 | 百度首页 
 
查看文章
 
解决Linux系统下Firefox中Flash中文不显示问题[转]
2009-10-10 09:16
转自:
http://hi.baidu.com/nichael2008/blog/item/c00daedf4feb595394ee37ae.html


参考地址:http://www.lxidea.cn/2008/11/26/make-the-chinese-characters-normality-in-flash-with-firefox-in-linux-system

Linux下安装了Adobe官方的Flash插件后,有可能会遇到打开的Flash中汉字显示为方块或者完全不显示的现象。

解决办法:

打开/etc/fonts/conf.d/49-sansserif.conf

修改此文件的内容,将其中除了monospace之外的所有字体改为你在Linux下使用的字体名称。
我在Linux Fedora9下安装了simsun字体(从windows的fonts目录拷贝到/usr/share/fonts/zh_CN/TrueType/)。于是文件改为如下格式。


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

这个文件的修改需要root权限。改完之后,保存所有工作,按“ctrl + alt + backspace”重启动x,flash中文显示就正常了,并且按照你设置的字体来显示。


类别:firefox浏览器 | 添加到搜藏 | 浏览() | 评论 (0)
 
最近读者:
 
网友评论:
发表评论:
姓 名:
网址或邮箱: (选填)
内 容:
验证码: 请点击后输入四位验证码,字母不区分大小写
      

     

©2009 Baidu