6 Jun 2008

ubuntu解决flash中文乱码

前几天为了解决ubuntu 8.04的中文字体问题,从win下拷贝过来几个ttf字体扔过去,
改了configure文件之后发现,所有的flash中的中文都变成了方框,
饿滴神呀!我情愿所有英文都是方框,中文方框我还混个p啊.

##CONTINUE##

没关系,兵来将挡,水来土淹.
道高一尺,魔高一丈.
问世间情为何物-一物降一物!
... ...
看来只好祭出我的法宝了,google/百度伺候,
2s之后,方框怪物偃旗息鼓,鸣金收兵作罢.

分析: 毛病主要出在/etc/fonts/conf.d/49-sansserif.conf/49-sansserif.conf这个配置文件上.
方法如下:

1,备份
cd /etc/fonts/conf.d/
sudo cp 49-sansserif.conf 49-sansserif.conf_backup


2,修改
sudo geany 49-sansserif.conf
是个xml文件好像,把pattern下第1/2/4个指定的字体改成你字库里有的中文,
很多人用wqy-zenhei,我改的是simsun.

3,注销看看就行了.
==============================
How to fix flash problem with displaying chinese characters under Ubuntu 8.04.

this problem is caused by the configure file named 49-sansserif.conf, if you got another chinese font in your system, you can fix it by the following steps:

1, backup file
sudo cp 49-sansserif.conf 49-sansserif.conf_backup

2, modify
sudo geany 49-sansserif.conf
it's easy to find that this is a xml file. you can change the fonts specified by the < string > under pattern section, to whatever chinese fonts in your system.

3, logout & login again to see the change!

DONE.

No comments :

Post a Comment