[转载]解决Linux下flash乱码问题
在Ubuntu中,会发现经常flash中显示的中文为乱码,如QQ游戏、Douban音乐等。
其实只要修改一下衬线字体即可。
修改文件 /etc/fonts/conf.d/49=sansserif.con
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
1 <?xml version="1.0"?>
2 <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
3 <fontconfig>
4 <!--
5 If the font still has no generic name, add sans-serif
6 -->
7 <match target="pattern">
8 <test qual="all" name="family" compare="not_eq">
9 <string>sans-serif</string>
10 </test>
11 <test qual="all" name="family" compare="not_eq">
12 <string>serif</string>
13 </test>
14 <test qual="all" name="family" compare="not_eq">
15 <string>monospace</string>
16 </test>
17 <edit name="family" mode="append_last">
18 <string>sans-serif</string>
19 </edit>
20 </match>
21 </fontconfig>
2 <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
3 <fontconfig>
4 <!--
5 If the font still has no generic name, add sans-serif
6 -->
7 <match target="pattern">
8 <test qual="all" name="family" compare="not_eq">
9 <string>sans-serif</string>
10 </test>
11 <test qual="all" name="family" compare="not_eq">
12 <string>serif</string>
13 </test>
14 <test qual="all" name="family" compare="not_eq">
15 <string>monospace</string>
16 </test>
17 <edit name="family" mode="append_last">
18 <string>sans-serif</string>
19 </edit>
20 </match>
21 </fontconfig>
把倒数第4行的<string>sans-serif<string>改成<string>sans</string>后刷新一下即可。