在Ubuntu中,会发现经常flash中显示的中文为乱码,如QQ游戏、Douban音乐等。

其实只要修改一下衬线字体即可。

修改文件 /etc/fonts/conf.d/49=sansserif.con

 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>

相关文章:

  • 2021-12-27
  • 2021-08-18
  • 2022-12-23
  • 2022-12-23
  • 2021-07-13
  • 2021-09-02
  • 2022-12-23
  • 2021-11-11
猜你喜欢
  • 2021-08-01
  • 2021-07-03
  • 2021-06-13
  • 2021-11-24
  • 2022-02-27
  • 2022-01-13
  • 2021-10-27
相关资源
相似解决方案