CentOS font installation
Step 1: Check the font commands installed: fc-list: lang = zh
Installation Method:
1. First download the font file (*. ttf file) You want to install from your local C: \ Windows \ Fonts or on the Network (rename *. ttc to *. ttf)
Go to the/usr/share/fonts/chinese/TrueType directory (if this directory is not available in the system, create mkdir on your own or rename it as your favorite folder name)
2. Modify the permission of the font file so that users other than the root user can also use
# Cd/usr/share/fonts/chinese/TrueType # chmod 755 *. ttf
3. Create a font Cache
# Mkfontscale (if mkfontscale: command not found is prompted, install # yum install mkfontscale) # mkfontdir # fc-cache-fv (if fc-cache: command not found is prompted, install # yum install fontconfig)
4. restart the computer (it seems that it must be restarted before it will take effect) # reboot