Text italic bold __linux in Linux configuration

Source: Internet
Author: User
Tags ming
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.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.