转自:
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中文显示就正常了,并且按照你设置的字体来显示。