Wednesday, January 16, 2013

Linux Mint 14 and Ubuntu 12.10 Chinese fonts Blur problem

Wenq.org offered an excellent tool to generate the .fonts.conf

http://wenq.org/cloud/fcdesigner_local.html

And also for the Chinese fonts packages


# aptitude install ttf-wqy-microhei ttf-wqy-zenhei xfonts-wqy



e.g. I used the tool to generate the below config file, save to ~/.fonts.conf and now the Chinese fonts looks much clear to me.

To download my file https://docs.google.com/file/d/0B7j0X0cOW5wTWnV2N3Y3NS1FeVE/edit

Or copy and paste here (Hope blogger won't do weird thing to mess up my code):

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- created by WenQuanYi FcDesigner v0.5 -->
<match>
 <test name="family"><string>sans-serif</string></test>
 <edit name="family" mode="prepend" binding="strong">
  <string>DejaVu Sans</string>
  <string>WenQuanYi Bitmap Song</string>
  <string>WenQuanYi Micro Hei</string>
  <string>WenQuanYi Zen Hei</string>
  <string>Liberation Sans</string>
  <string>Droid Sans</string>
   <!-- Please install WenQuanYi Bitmap Song first -->
 </edit>
</match>
<match>
 <test name="family"><string>serif</string></test>
 <edit name="family" mode="prepend" binding="strong">
  <string>DejaVu Serif</string>
  <string>WenQuanYi Bitmap Song</string>
   <!-- Please install WenQuanYi Bitmap Song first -->
  <string>AR PL UMing CN</string>
  <string>AR PL SungtiL GB</string>
  <string>WenQuanYi Zen Hei Sharp</string>
  <string>AR PL UMing TW</string>
  <string>Liberation Serif</string>
  <string>Bitstream Charter</string>
  <string>Droid Serif</string>
 </edit>
</match>
<match>
 <test name="family"><string>monospace</string></test>
 <edit name="family" mode="prepend" binding="strong">
  <string>WenQuanYi Zen Hei Sharp</string>
  <string>WenQuanYi Zen Hei Mono</string>
  <string>WenQuanYi Micro Hei Mono</string>
  <string>DejaVu Sans Mono</string>
  <string>Droid Sans Mono</string>
  <string>Liberation Sans Mono</string>
   <!-- Please install Liberation Sans Mono first -->
  <string>AR PL UMing TW</string>
 </edit>
</match>
</fontconfig>

No comments: