網誌文章封存
解決Ubuntu中, Firefox的Flash插件顯示中文為「口口口」的問題
在Ubuntu中,使用Firefox時,總會使用到Flash插件的時候。可是Firefox in Ubuntu直到現在還沒有解決到一個問題:Flash插件中的中文顯示為”口口口口”,看不到完整的中文。
其實解決辨法很簡單,只需要修改一下Firefox預設字型檔就可以了。
打開終端機,輸入:
$sudo gedit /etc/fonts/conf.d/49-sansserif.conf
然後找到以下代碼。
<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>
將紅色字部分中間的 “-" 以空格取代,變成:
<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>
接著重新開啟Firefox,再隨便打開一個Flash,你就會發現它變得正常了。
其實這也算不上是Bug,可能是開發人員字型的名稱與我們的有少許不同而已。稍作修改即可。
看過的在下方回覆一下嘛。







