ubuntu安装好中文支持后,打开浏览器浏览网页中的flash会发现所有的中文都是乱码,这是因为使用了非中文字库的原因。
解决的方法是修改配置文件,配置文件的位置在/etc/fonts/conf.d/
的 49-sansserif.conf。所以我们可以这样操作。

打开终端
进入该位置:
cd /etc/fonts/conf.d/
备份一份,防止意外:
sudo cp 49-sansserif.conf 49-sansserif.conf_backup
以sudo模式打开:
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>sans-serif</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>


将sans-serif和serif字体标签换成你系统支持的,例如:wqy-zenhei
保存,重新启动firefox看看