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