Introduction to the method of installing fonts under windows into Linux system
Linux(Fedora/Ubuntu/CentOS) fonts are not satisfactory, and many words cannot be displayed in web pages and documents, especially many blanks and garbled characters. In fact, we can add fonts under windows and our favorite fonts to Linux. This article will introduce how to add fonts under Linux.
I. Introduction to Linux font method
1. First, copy the font you want in Windows Control Panel-> Font.
Then go to Linux(Fedora/Ubuntu), create a new folder on the desktop, named font, and put the fonts copied from Windows under this folder.
Find the folder location where Chinese user Linux fonts are stored, usually under/usr/share/fonts/zh_CN/. If there is no such directory, it may be under/usr/share/fonts/chinese/.
2. Open the terminal and enter the root state. To 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 this folder
The requested URL/font/*/usr/share/fonts/zh_CN/micro/was not found on this server.
Note that my login username is jb51.net. When you enter the above statement, you can change it to your own username.
3. Then grant permissions to this folder.
chmod 775 /usr/share/fonts/zh_CN/micro
4. Create font cache
cd /usr/share/fonts/winsudo mkfontscalesudo mkfontdirsudo fc-cache -fv
OK, now Linux font added, on the desktop, right click, click "Set desktop background", select "Font", see if you can see the font added.
II. Summary
In general, adding fonts is not difficult, everyone is familiar with Linux, in fact, many methods and Windows operating methods are the same.