ubuntu 安装后字体 发虚 模糊
1.Open Terminal,
2.Input "sudo gedit /etc/f" ,
3.Add the following codes into it, oerride the old content(codes).
<fontconfig>
<alias>
<family>rif</family>
<prefer>
<family>Bitstream Vera Serif</family>
<family>Deja Vu Serif</family>
<family>字体名称</family>
<family>AR PL ShanHeiSun Uni</family>
<family>WenQuan Yi Bitmap Song</family>
<family>AR PL ZenKai Uni</family>
</prefer>
</alias>
<alias>
<family>sans-rif</family>
<prefer>
<family>Bitstream Vera Sans</family>
<family>Deja Vu Sans</family>
<family>字体名称</family>
<family>AR PL ShanHeiSun Uni</family>
<family>WenQuan Yi Bitmap Song</family>
<family>AR PL ZenKai Uni</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>Bitstream Vera Sans Mono</family>
<family>Deja Vu Sans Mono</family>
<family>字体名称</family>
<family>AR PL ShanHeiSun Uni</family>
<family>WenQuan Yi Bitmap Song</family>
<family>AR PL ZenKai Uni</family>
</prefer>
</alias>
<match target="font">
<test name="family" compare="contains" >
<string>Song</string>
<string>Sun</string>
<string>Kai</string>
<string>Ming</string>
</test>
<test name="weight" compare="less_eq" >
<int>100</int>
</test>
<test compare="more_eq" target="pattern" name="weight" >
<int>180</int>
</test>
<edit mode="assign" name="embolden" >
<bool>ture</bool>
</edit>
</match>
<match target="font">
<test name="family" compare="contains" >
<string>Song</string>
<string>Sun</string>
<string>Kai</string>
<string>Ming</string>
</test>
<edit name="globaladvance" >
<bool>fal</bool>
</edit>
<edit name="spacing" >
<int>0</int>
</edit>
<edit name="hinting" >
<bool>true</bool>
</edit>
<edit name="autohint" >
<bool>fal</bool>
</edit>
<edit name="antialias" mode="assign" >
<bool>true</bool>
</edit>
<test name="pixelsize" compare="less_eq" >
<int>18</int>
</test>
<edit name="antialias" mode="assign" >
<bool>fal</bool>
</edit>
</match>
</fontconfig>
4.不好意思,小发挥了下。其实就是输入那行命令后,会弹出编辑f文件,然后把以上的XML代码烤进去就行啦。注意是覆盖所有内容!
备注:我出现这问题时 ,打开的时候 是空的,所以直接复制就OK啦。