Install Font Libraries and Chinese Fonts on Linux CentOS 7
yum -y install fontconfig
Now you can see the fonts and fontconfig directories under /usr/shared (they did not exist before).
Before that we need to create a directory. First create /usr/shared/fonts/chinese.
mkdir /usr/shared/fonts/chinese
Copy the fonts you need and upload them to /usr/shared/fonts/chinese. Here I use SimSun and HeiTi (used in reports). You will see files with ttf and ttc extensions.
chmod -R 755 /usr/share/fonts/chinese
Next, install ttmkfdir to scan font information in the directory and generate the fonts.scale file.
yum -y install ttmkfdir
ttmkfdir -e /usr/share/X11/fonts/encodings/encodings.dir
vi /etc/fonts/fonts.conf
<dir>/usr/shared/fonts/chinese<dir>
Refresh the font cache in memory.
fc-cache
