Introduction to installing fonts under windows to Linux system

  • 2020-09-16 07:53:32
  • OfStack

The font of Linux(Fedora/Ubuntu/CentOS) is not satisfactory, and many words cannot be displayed in the display of web pages and documents, especially too much white space and messy code. In fact, we can add the font of windows and your favorite font to Linux. This article will show you how to add fonts under Linux.

1. Introduction to Linux's method for adding fonts

1, first in windows's "control panel" - > In Fonts, copy the font you want.

Go to Linux(Fedora/Ubuntu), create a new folder on the desktop called font, and put all the fonts copied under Windows in this folder.

Find Chinese users Linux font storage folder location, in like 1 / usr/share/fonts/zh_CN/below, if there is no this directory, so may be in/usr/share/fonts/chinese/below.

2. Open the terminal and enter root state. Create a new folder under the fonts folder. Type


mkdir /usr/share/fonts/zh_CN/micro

Here's how to move all the fonts into the folder you created


mv /home/ofstack.com/ desktop /font/*/usr/share/fonts/zh_CN/micro

Note that my login username is ES43en.com, you can just change your username when you enter the above statement.

3. Then grant permissions to the folder.


chmod 775 /usr/share/fonts/zh_CN/micro

4. Set up font cache


cd /usr/share/fonts/win

sudo mkfontscale

sudo mkfontdir

sudo fc-cache -fv

Ok, now the Linux font is added, on the desktop, right click "Set Desktop Background", select "Font", see if you can see the font you added.

2. To summarize

Generally speaking, it is not difficult to add fonts, as many of you are familiar with Linux. In fact, many methods are the same as Windows's operation method.


Related articles: