星期一, 4月 06, 2009

ubuntu 中的firefox 的flashplayer10的方框字


就像圖片中,網站的FLASH的中文字變成一堆方框,如果不管它,也還過得去。只是愈看愈礙眼,上網查了一下,居然也不難解決。

1 下指令編輯49-sansserif.conf這個檔

sudo gedit /etc/fonts/conf.d/49-sansserif.conf


2 把檔案中的sans-serif用wqy-zenhei(文泉驛正黑)取代

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
If the font still has no generic name, add sans-serif
中文不正常時用wqy-zenhei取代sans-serif
-->
<match target="pattern">
<test qual="all" name="family" compare="not_eq">
<string>wqy-zenhei</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>wqy-zenhei</string>
</edit>
</match>
</fontconfig>


關掉firefox再重開就OK了!

沒有留言: