Table of Contents
Does centos not need to restart when adding fonts?
2. Add fonts to CentOS" >2. Add fonts to CentOS
3. Set the system font" >3. Set the system font
Home Operation and Maintenance CentOS Does centos not restart when adding fonts?

Does centos not restart when adding fonts?

Mar 24, 2022 pm 12:12 PM
centos

centos 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.

Does centos not restart when 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. 1

    from Windows and enter the C:\Winodws\Fonts directory.

    Does centos not restart when adding fonts?

  2. 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.

    Does centos not restart when adding fonts?

  3. 3

    Right-click the mouse on the found font and select "Copy".

    Does centos not restart when adding fonts?

  4. 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.

    Does centos not restart when adding fonts?

    END

2. Add fonts to CentOS

  1. 1

    Open the CentOS virtual machine and log in to the desktop.

    Does centos not restart when adding fonts?

  2. 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")

    Does centos not restart when adding fonts?

  3. 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.

    Does centos not restart when adding fonts?

  4. 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.

    Does centos not restart when adding fonts?

    END

3. Set the system font

  1. 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.

    Does centos not restart when adding fonts?

  2. 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.

    Does centos not restart when adding fonts?

  3. The following is the desktop effect after changing the font.

    Does centos not restart when adding fonts?

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!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to input Chinese in centos How to input Chinese in centos Apr 07, 2024 pm 08:21 PM

How to input Chinese in centos

How to read USB disk files in centos7 How to read USB disk files in centos7 Apr 07, 2024 pm 08:18 PM

How to read USB disk files in centos7

How to enter root permissions in centos7 How to enter root permissions in centos7 Apr 02, 2024 pm 08:57 PM

How to enter root permissions in centos7

What to do if you forget your password to log in to centos What to do if you forget your password to log in to centos Apr 07, 2024 pm 07:33 PM

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

SCP usage tips-recursively exclude files SCP usage tips-recursively exclude files Apr 22, 2024 am 09:04 AM

SCP usage tips-recursively exclude files

What should I do if I forget my centos username and password? What should I do if I forget my centos username and password? Apr 02, 2024 pm 08:54 PM

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

How to enable root permissions in centos7 How to enable root permissions in centos7 Apr 07, 2024 pm 08:03 PM

How to enable root permissions in centos7

What should I do if I forget my centos7 password? What should I do if I forget my centos7 password? Apr 02, 2024 pm 08:51 PM

What should I do if I forget my centos7 password?

See all articles