歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu 9.04 Firefox安裝Adobe Flash後亂碼

Ubuntu 9.04 Firefox安裝Adobe Flash後亂碼

日期:2017/2/28 16:43:54   编辑:Linux教程

Ubuntu 9.04下為浏覽器Firefox安裝Flash插件,找開谷歌音樂聽歌,後來發現中文會變成方框。網上搜索一下,馬上就找到解決方法。三人行必有我師焉,這句話真的得改了。改成“網絡行必有我師焉。”

解決Ubuntu火狐Firefox安張adobe Flash插件後播放flash亂碼問題

打開終端輸入命令(為了安全,備份一下:sudo cp 49-sansserif.conf 49-sansserif.conf_backup )

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

找到最後第4行的 sans-serif 替換為“文泉驿正黑”,即可解決。

代碼:

<string>文泉驿正黑</string>

保存即可,重啟firefox,flash亂碼解決了。

修改後的內容為:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
If the font still has no generic name, add sans-serif
-->
<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>文泉驿正黑</string>
</edit>
</match>
</fontconfig>

Copyright © Linux教程網 All Rights Reserved