Ubuntu 字体设置

ubuntu 14.04发布之后,我就迫不及待地安装使用了。也不知道是怎么搞的,整个系统的字体完全变了。发虚,非常难看。后来,听说文泉驿米黑效果不错,就试了一下,确实还行。

设置方法

1.安装文泉驿米黑

sudo aptitude install ttf-wqy-microhei

2.修改字体配置文件

sudo gedit /etc/fonts/conf.d/69-language-selector-zh-cn.conf

先把原来的内容删掉,修改为:

<?xml version="1.0"?>  
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">  
<fontconfig>  
  
   <match target="pattern">  
      <test qual="any" name="family">  
         <string>serif</string>  
      </test>  
      <edit name="family" mode="prepend" binding="strong">  
         <string>WenQuanYi Micro Hei</string>  
         <string>AR PL UMing CN</string>  
         <string>AR PL ShanHeiSun Uni</string>  
         <string>WenQuanYi Bitmap Song</string>  
         <string>Bitstream Vera Serif</string>  
         <string>DejaVu Serif</string>  
         <string>AR PL UKai CN</string>  
         <string>AR PL ZenKai Uni</string>  
      </edit>  
   </match>   
   <match target="pattern">  
      <test qual="any" name="family">  
         <string>sans-serif</string>  
      </test>  
      <edit name="family" mode="prepend" binding="strong">  
         <string>WenQuanYi Micro Hei</string>  
         <string>Bitstream Vera Sans</string>  
         <string>DejaVu Sans</string>  
         <string>WenQuanYi Zen Hei</string>  
         <string>AR PL UMing CN</string>  
         <string>AR PL ShanHeiSun Uni</string>  
         <string>WenQuanYi Bitmap Song</string>  
         <string>AR PL UKai CN</string>  
         <string>AR PL ZenKai Uni</string>  
      </edit>  
   </match>   
   <match target="pattern">  
      <test qual="any" name="family">  
         <string>monospace</string>  
      </test>  
      <edit name="family" mode="prepend" binding="strong">  
         <string>WenQuanYi Micro Hei Mono</string>  
         <string>Bitstream Vera Sans Mono</string>  
         <string>DejaVu Sans Mono</string>  
         <string>WenQuanYi Zen Hei</string>  
         <string>AR PL UMing CN</string>  
         <string>AR PL ShanHeiSun Uni</string>  
         <string>WenQuanYi Bitmap Song</string>  
         <string>AR PL UKai CN</string>  
         <string>AR PL ZenKai Uni</string>  
      </edit>  
   </match>   
  
</fontconfig>

注销重新登录就生效了!