Very simple method to install fonts and switch default fonts under Ubuntu system

Open a portal : https://my.oschina.net/itblog/blog/278566


Thanks to the author of the article and its reference authors.


The original text is attached below:


Abstract: After the Ubuntu system is installed, the default font support for Chinese does not look very beautiful, so many friends may need to set the default font of the system to their favorite font. This article mainly introduces how to solve these two problems.

Description: The test system is Ubuntu14.04 .

Install fonts:

    Taking Microsoft Yahei font as an example (other Arial, Hei, etc. dot matrix fonts are the same), our Yahei font files are: msyh.ttf (regular font) and msyhbd.ttf (Microsoft Yahei bold font), The font can be found in the Fonts directory of the widows directory, if not, it can also be downloaded from the Internet. Since I have dual systems, I directly copied  msyh.ttf and msyhbd.ttf from Win7  (both under C:\Windows\Fonts , you can find them by searching) to the folder font on the desktop in Ubuntu (~/Desktop/ font).


    1. Create a new folder under /usr/share/fonts/ such as: winFonts directory, prepare to put all the fonts copied from windows in this directory, here is to put Yahei fonts msyh.ttf and msyhbd.ttf :

 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

    (It’s okay to change it to 755, but at least 444. The permission to modify the Yahei font file is 644, that is, the current user is read-write, the current group user is read-only, and other users are 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 is from: http://blog.163.com/kukwkukw@126/blog/static/970959002012111893150846/


Modify the system default font:

    Open the software center of Ubuntu, search for: tweak, and install the [Unity Tweak Tool] software, as shown in the figure (because I cut the picture after executing both steps of this article, the fonts of various forms have been set by me as Microsoft Yahei, friends will have the same effect by following this step):

    Next, we open the software, the interface is as shown in the figure:

    Select the [Font] option, and enter as shown in the figure:

    Here you can modify the system's [default font] and [window title font].

    The modification results have been seen from the screenshots, and the screenshots are no longer here.


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326070303&siteId=291194637