Use the font to beautify Chinese Characters in Ubuntu font beautification

Source: Internet
Author: User
Author: dogfox Editor: FireHare applicable version: UbuntuDapper test environment: UbuntuDappergnome Chinese + English add source UbuntuDapper users only need to add the following two to sources. listsudonano/etc/apt/sources. list # ClearTypepatchesdebhttp: // www. elisanet. fi/mlind/ubu

Author: dogfox
Edited by: FireHare
Applicable version: Ubuntu Dapper
Test environment: Ubuntu Dapper gnome Chinese + English
Add Source
Ubuntu Dapper users only need to add the following two to sources. list

Sudo nano/etc/apt/sources. list
# ClearType patches
Deb http://www.elisanet.fi/mlind/ubuntu dapper fonts
Deb-src http://www.elisanet.fi/mlind/ubuntu dapper fonts

Or

Deb http://www.telemail.fi/mlind/ubuntu feisty fonts
Deb-src http://www.telemail.fi/mlind/ubuntu (feisty fonts)

Download Public Key

Gpg -- keyserver pgp.mit.edu -- recv-key D0AFFF5E937215FF
Gpg-a -- export D0AFFF5E937215FF | sudo apt-key add-

Or

Gpg -- keyserver subkeys.pgp.net -- recv-keys 937215FF
Gpg -- export -- armor 937215FF | sudo apt-key add-

Upgrade File

Sudo apt-get update & sudo apt-get install libxft2 libxft-dev libfreetype6 libfreetype6-dev libcairo2-dev

Download font and modify font Permissions
Download the font and place it under/usr/share/fonts/yahei /.
(Please search for and download the font on google or baidu, in which/yahei is your new font folder)

Modify the font permission so that common users other than root can also use normally.

Sudo chmod 555/usr/share/fonts/yahei /*

Create font Cache Information

Cd/usr/share/fonts/yahei/
Sudo mkfontscale
Sudo mkfontdir
Sudo fc-cache-fv

Modify font configuration file

Download the configuration, decompress it, and copy the configuration file to/etc/fonts /.

(The configuration file is for reference only, depending on the installed fonts. See the attachment for the configuration file .)

Modify the language-selector.conf (if your system does not have this file, this step can be ignored, this file will be available after the wenquanyi font is installed)

Sudo gedit/etc/fonts/language-selector.conf

In

Bitstream Vera Serif
Bitstream Vera Sans
Bitstream Vera Sans Mono
Add
Microsoft YaHei
Example: (Note: this is only part of the language-selector.conf file, for reference only, do not copy)


Serif

Bitstream Vera Serif
Microsoft YaHei
DejaVu Serif
Ar pl ShanHeiSun Uni
WenQuanYi Bitmap Song
Ar pl ZenKai Uni



Sans-serif

Bitstream Vera Sans
Microsoft YaHei
DejaVu Sans
Ar pl ShanHeiSun Uni
WenQuanYi Bitmap Song
Ar pl ZenKai Uni



Monospace

Bitstream Vera Sans Mono
Microsoft YaHei
DejaVu Sans Mono
Ar pl ShanHeiSun Uni
WenQuanYi Bitmap Song
Ar pl ZenKai Uni

Related Article

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.