Home  >  Article  >  System Tutorial  >  Learn how to install third-party fonts on Red Hat Linux

Learn how to install third-party fonts on Red Hat Linux

WBOY
WBOYforward
2023-12-29 18:34:281347browse

Many friends who have used Windows and then use Red Hat Linux will definitely feel that the fonts of Red Hat Linux pale in comparison. Of course, if you want Red Hat Linux to look more beautiful, the best way is to "move" your favorite fonts to the Red Hat system. However, compared with installing fonts on Windows, adding a third-party font on Linux is simply "difficult" for some Linux novices. So, what exactly do you need to do to add third-party fonts to Red Hat Linux?

1. File attribute location

1. First, find the font you want to replace in the Red Hat Linux system, then right-click the font and click "Properties".

Learn how to install third-party fonts on Red Hat Linux

2. Then, find the location of the font file in the font file properties , write it down, and finally close the properties window.

Learn how to install third-party fonts on Red Hat Linux

2. Copy the font file to the system font folder

1. Click "Application" to start "Terminal".

Learn how to install third-party fonts on Red Hat Linux

2. After opening the terminal, if the current user is not the root user, switch to the root user.

1) Type sudo -s

2) Enter the current user password and press Enter (note, not the root user password)

Learn how to install third-party fonts on Red Hat Linux

3. Use the mkdir command to create a new folder in the /usr/share/fonts directory. This folder is used to store the files we want to add. font file. The name of the folder can be customized. For example, I named it mono.

Learn how to install third-party fonts on Red Hat Linux

4. Then use the cp command to copy the font file to the newly created folder. Note that the last item is the name of the copied file, which can be different from the original font file name (but the extension must be the same), here it is mono.ttf.

Learn how to install third-party fonts on Red Hat Linux

5. After the copy is successful, you can close the terminal window.

Notice:

1) The sign of successful copying is that no error message is given.

2) When closing the terminal, if a warning prompt pops up, just ignore it.

Learn how to install third-party fonts on Red Hat Linux

Learn how to install third-party fonts on Red Hat Linux

3. Use new fonts

1. Now, we can replace the system interface font with our newly added font in "Optimization Tool"-"Font" .

Learn how to install third-party fonts on Red Hat Linux

2. Of course, we can also change the terminal configuration file and set the terminal font to our newly added font.

Learn how to install third-party fonts on Red Hat Linux

related suggestion:

How to install Thunder Express Edition on Linux?

How to install MeituXiuXiu in Linux?

How to enable gc settings for logs in tomcat in Linux?

The above is the detailed content of Learn how to install third-party fonts on Red Hat Linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:jb51.net. If there is any infringement, please contact admin@php.cn delete