Posted on 2009-05-06 07:28 
saobaolu 阅读(868) 
评论(1)  编辑  收藏  所属分类: 
Linux操作系统 
			 
			
		 
		ubuntu装好之后, 为浏览器firefox安装flash插件, 后来发现中文会变成方框。
如何解决?
输入:
cd /etc/fonts/conf.d/
为了安全,备份一下:
sudo cp 49-sansserif.conf 49-sansserif.conf_backup
输入如下指令:
sudo gedit ./49-sansserif.conf
此时文件显示内容。
将其中的第1、2、4个后面的sans-serif或者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>
没有所谓的命运,只有不同的选择!