Does centos not restart when adding fonts?
Mar 24, 2022 pm 12:12 PMcentos does not need to be restarted when adding fonts. The method of adding fonts is: 1. Use the ll command to enter the shared file with the font; 2. Use the cp command to copy the font file and create a font cache; 3. Set the font style according to the file. There is no need to restart the system during the process of adding fonts.
The operating environment of this article: centos 7 system, Dell G3 computer.
Does centos not need to restart when adding fonts?
centos does not need to restart when adding fonts
The steps for centos to add fonts are as follows:
1. From Remove the font
-
1
from Windows and enter the C:\Winodws\Fonts directory.
-
2
Enter the name of the font you want to add in the search box in the upper right corner (this is Microsoft Yahei) , find it among many fonts.
-
3
Right-click the mouse on the found font and select "Copy".
-
4
Paste the copied fonts to the shared folder of the VM (method to set up the shared folder in the VM, See my experience "How to share folders with the host in VM").
Note that although only one Microsoft Yahei font appears in the font directory, it actually includes three font files.
END
2. Add fonts to CentOS
-
1
Open the CentOS virtual machine and log in to the desktop.
-
2
Start the terminal and enter the shared folder directory. At this point, typing the ll command will see the files that were previously copied to the shared directory. (For the method of entering shared folders, please also refer to my experience "How to share folders with the host in VM")
-
3
Switch to the root account, and then type the command cp msyhbd.ttc msyhl.ttc msyh.ttc /usr/share/fonts/chinese/TrueType to copy the three fonts to the /usr/share/fonts/chinese/TrueType directory.
-
4
To create a font cache, the command is as follows (; means writing multiple commands in the same line and executing them in sequence):
cd /usr/share/fonts/chinese/TrueType; mkfontscale; mkfontdir; fc-cache -fv. After execution, the font will be installed.
END
3. Set the system font
-
After the font is installed successfully, we can let the system use the newly installed font. Click "System" - "First Items" - "Font" on the graphical interface, and the following setting box will pop up.
-
At this time, click on the font after the corresponding entry, and we can set it to the font we just added according to our own preferences.
-
The following is the desktop effect after changing the font.
Recommended tutorial: "centos tutorial"
The above is the detailed content of Does centos not restart when adding fonts?. For more information, please follow other related articles on the PHP Chinese website!

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

How to read USB disk files in centos7

How to enter root permissions in centos7

What to do if you forget your password to log in to centos

SCP usage tips-recursively exclude files

What should I do if I forget my centos username and password?

How to enable root permissions in centos7

What should I do if I forget my centos7 password?
