Abstract: After the installation of Ubuntu system, the default font for Chinese support does not look very beautiful, so many friends may need to set the system's default font for their favorite fonts. This article mainly describes how to solve these two problems.
Description: The test system is Ubuntu14.04.
Install fonts:
For example, Microsoft Ya-Black font (other fonts are the same as the Arial, blackbody, etc.), our Ya-black font file is: Msyh.ttf (regular font) and Msyhbd.ttf (Microsoft Ya Black Bold font), the font can be found in the fonts directory of Widows directory, if not, can also be downloaded from the Internet. Since I am a dual system, I copied the Msyh.ttf and Msyhbd.ttf directly from the Win7 (all under C:\Windows\Fonts , Search is ready) to Ubuntu Desktop folder under the Font (~/desktop/font).
1. Under/usr/share/fonts/, create a new folder such as: Winfonts directory, ready to copy the fonts from Windows in this directory, here is the JAS Black font Msyh.ttf and Msyhbd.ttf in:
sudo mkdir -p /usr/share/fonts/winFonts
2. Then copy the font files to this folder:
sudo cp ~/Desktop/font/*.ttf /usr/share/fonts/winFonts/
3. Then, change the permissions:
sudo chmod 644 /usr/share/fonts/winFonts/*.ttf
(Change to 755 is no problem, but at least 444, modify the JAS Black font file permissions of 644, that is, the current user read and write, the current group of users read-only, other users read only)
4. Start the installation:
cd /usr/share/fonts/winFonts/sudo mkfontscale (创建雅黑字体的fonts.scale文件,它用来控制字体旋转缩放)sudo mkfontdir (创建雅黑字体的fonts.dir文件,它用来控制字体粗斜体产生)sudo fc-cache -fv (建立字体缓存信息,也就是让系统认识雅黑)
The above content from: Http://blog.163.com/[email protected]/blog/static/970959002012111893150846/
To modify the system default font:
open Ubuntu Software Center, search: Tweak, install the "Unity tweak Tool" This software, (because I put the two steps of this article is finished to cut the figure, so the various forms of font has been I set to Microsoft Ya Black, Friends will do the same with this step):
Next, we open the software, the interface
Select the "Font" option and enter
Here you can modify the system's "default font" and "Window title font" and so on.
The results of the changes have also been seen from the above, here no longer.
Transferred from: https://my.oschina.net/itblog/blog/278566
A simple way to install fonts and switch default fonts in the Ubuntu system