修复Linux下Flash乱码问题

看弹幕网站一直是一个宅男的标准爱好,但是有的时候在Linux下工作的时候想看AB站非常的不给力,因为弹幕全是大方块啊,难道非要我回到Windows的怀抱才可以么?这当然不是一个技术宅男的作风,所以解决他才是王道。

当然第一步肯定是谷歌搜一下啦,结果就是删除/etc/fonts/con.d/49-sansserif.conf,或者修改这个文件,如果事情这么简单就不会有这篇博客了,答案是这样不行,至少是在Archlinux里不行,于是经过探索,发现的确是要修改一个文件,但不是上面这个,而是/etc/fonts/con.d/69-unifont.conf这个文件。

 

<?xml version="1.0"?>

  &lt;!DOCTYPE fontconfig SYSTEM &quot;fonts.dtd&quot;&gt;

  &lt;fontconfig&gt;

  &nbsp;&nbsp; &nbsp;&lt;alias&gt;

  &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;family&gt;serif&lt;/family&gt;

  &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;prefer&gt;

  &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;family&gt;FreeSerif&lt;/family&gt;

  &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;family&gt;Code2000&lt;/family&gt;

  &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;family&gt;Code2001&lt;/family&gt; &lt;!-- plane1 and beyond --&gt;

  &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; **&nbsp;&lt;family&gt;WenQuanYi Micro Hei&lt;/family&gt;**

  &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;/prefer&gt;

  &nbsp;&nbsp; &nbsp;&lt;/alias&gt;

  &nbsp;&nbsp; &nbsp;&lt;alias&gt;

  &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;family&gt;sans-serif&lt;/family&gt;

  &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;prefer&gt;

  &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;family&gt;FreeSans&lt;/family&gt;

  &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;family&gt;Arial Unicode MS&lt;/family&gt;

  &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;family&gt;Arial Unicode&lt;/family&gt;

  &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;family&gt;Code2000&lt;/family&gt; &lt;!-- almost everything; serif actually --&gt;

  &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;family&gt;Code2001&lt;/family&gt; &lt;!-- plane1 and beyond --&gt;

  &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;**&lt;family&gt;WenQuanYi Micro Hei&lt;/family&gt;**

  &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;/prefer&gt;

  &nbsp;&nbsp; &nbsp;&lt;/alias&gt;

  &nbsp;&nbsp; &nbsp;&lt;alias&gt;

  &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;family&gt;monospace&lt;/family&gt;

  &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;prefer&gt;

  &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;family&gt;FreeMono&lt;/family&gt;

  &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;**&lt;family&gt;WenQuanYi Micro Hei Mono&lt;/family&gt;**

  &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;/prefer&gt;

  &nbsp;&nbsp; &nbsp;&lt;/alias&gt;

  &lt;/fontconfig&gt;</pre>

 

 

注意标黑的部分,我这里使用的是文泉驿微米黑,也可以使用文泉驿正黑等字体,前提是系统里已经安装了,保存后重启浏览器就正常了。

1

&nbsp;