To solve the Chinese hollow, increase the bold italic. To beautify the English display.
This article is passed on the ubuntu/dapper. Debian/sid
1, upgrade Libxft2,libfreetype6,fontconfig to the latest version.
$ sudo apt-get install libxft2 libfreetype6 fontconfig |
My current version of LIBXFT2 is 2.1.8 Libfreetype6 for 2.1.10 fontconfig for 2.3.2
Almost all distributions now offer the appropriate installation package. If the distribution you are using is not the latest version, you can download the packages and install them on your source pool.
2, install uming and Ukai fonts. (Uming is necessary)
$ sudo apt-get install ttf-arphic-uming Ttf-arphic-ukai
|
3, modify the configuration file.
New/etc/fonts/conf.d/10myfonts.conf
The contents are as follows:
<fontconfig> <alias> <family>serif</family> <prefer> <family>bitstream Vera serif</family> <family>dejavu serif</family> <family>ar PL Shanheisun uni</family> <family>wenquanyi Bitmap song</family> <family>ar PL Zenkai uni</family> </prefer> </alias> <alias> <family>sans-serif</family> <prefer> <family>bitstream Vera sans</family> <family>dejavu sans</family> <family>ar PL Shanheisun uni</family> <family>wenquanyi Bitmap song</family> <family>ar PL Zenkai uni</family> </prefer> </alias> <alias> <family>monospace</family> <prefer> <family>bitstream Vera Sans mono</family> <family>dejavu Sans mono</family> <family>ar PL Shanheisun uni</family> <family>wenquanyi 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>true</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>false</bool> </edit> <edit name= "Spacing" > <int>0</int> </edit> <edit name= "hinting" > <bool>true</bool> </edit> <edit name= "Autohint" > <bool>false</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>false</bool> </edit> </match> </fontconfig>
|
Reboot X.
Enjoy it!
2006-06-02 Modify configuration file. This configuration file is used by Ubuntu dapper.
2006-06-26 Modify the configuration file to correct a virtual bold error.