Posted on 2009-05-06 07:28
saobaolu 閱讀(846)
評論(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>
沒有所謂的命運,只有不同的選擇!