Ubuntu 14.04 64-bit font beautification (use wenquanyi micro-black)

Source: Internet
Author: User

After Ubuntu 14.04 is installed and upgraded, it turns into a very ugly font. After one night yesterday, I finally got a clue and sorted it out here.

After online research, everyone agreed that the use of the open-source library wenquanyi micro-black font is ideal, and even the effect is not lost to the windows platform font. Next I plan to beautify Ubuntu 14.04.

1. Install the wenquanyi micro-black Font Library
Sudo aptitude install ttf-wqy-microhei

2. Install the UI beautification tool. Select ubuntu-tweak and download the latest deb package from the official website. Double-click it to install it.

Http://ubuntu-tweak.com/


After the installation is complete, install ubuntu tweak in the Software Center, go to the adjustment-> font library, and modify the default font and desktop font. This is my current configuration


Here is the Ubuntu font, because it is better than the wenquanyi micro-black font, so I use this font as the default English font. Of course, you can also use other interface tools to make adjustments, such as installing $ sudo apt-get install gnome-tweak-tool
You can also set it.

3. Confirm and modify the font configuration file.

Generally, Ubuntu font files are stored under/usr/share/fonts, And the font configuration file is placed under/etc/fonts.

Ubuntu's control over Chinese fonts is concentrated in one file,/etc/fonts/conf. d/69-language-selector-zh-cn.conf,


Sudo gedit/etc/fonts/conf. d/69-language-selector-zh-cn.conf
Modify as follows:

<?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd"><fontconfig>    <match target="pattern">        <test name="lang">            <string>zh-cn</string>        </test>        <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 UMing HK</string>            <string>AR PL New Sung</string>            <string>WenQuanYi Bitmap Song</string>            <string>AR PL UKai CN</string>            <string>AR PL ZenKai Uni</string>            <string>HYSong</string>        </edit>    </match>     <match target="pattern">        <test qual="any" name="family">            <string>sans-serif</string>        </test>        <test name="lang">            <string>zh-cn</string>        </test>        <edit name="family" mode="prepend" binding="strong">            <string>WenQuanYi Micro Hei</string>            <string>Droid Sans Fallback</string>            <string>HYSong</string>            <string>AR PL UMing CN</string>            <string>AR PL UMing HK</string>            <string>AR PL New Sung</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>        <test name="lang">            <string>zh-cn</string>        </test>        <edit name="family" mode="prepend" binding="strong">            <string>WenQuanYi Micro Hei Mono</string>            <string>Droid Sans Fallback</string>            <string>HYSong</string>            <string>AR PL UMing CN</string>            <string>AR PL UMing HK</string>            <string>AR PL New Sung</string>            <string>AR PL UKai CN</string>            <string>AR PL ZenKai Uni</string>        </edit>    </match> </fontconfig>

Note that micron black requires binding = "strong ".
In this way, Ubuntu is the default English language, and wenquanyi micron black is the default Chinese language. Even if the Browser contains CSS-style text, it also has a good display effect. Ideal results.

After the font is changed, you can see the effect without restarting it.



References

[1] http://forum.ubuntu.org.cn/viewtopic.php? F = 8 & t = 236013 & start = 0

[2] http://www.linuxidc.com/show.aspx? Id = 93711 & cid = 5

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.