解决的问题?
fc-list
yum -y install fontconfig
mkdir /usr/shared/fonts/chinese
<!-- 悄悄的说:这2个文件可以在Windows系统的C:\fonts文件夹中找到. -->
simsun.ttc
simsunb.ttf
chmod -R 755 /usr/share/fonts/chinese
yum -y install ttmkfdir
ttmkfdir -e /usr/share/X11/fonts/encodings/encodings.dir
vi /etc/fonts/fonts.conf
<!-- Font directory list -->
<dir>/usr/share/fonts</dir>
<dir>/usr/share/X11/fonts/Type1</dir> <dir>/usr/share/X11/fonts/TTF</dir> <dir>/usr/local/share/fonts</dir>
<!-- 添加chinese文件夹的地址 -->
<dir>/usr/share/fonts/chinese</dir>
<dir prefix="xdg">fonts</dir>
<!-- the following element will be removed in the future -->
<dir>~/.fonts</dir>
fc-cache
OKOK,接下来就是见证奇迹的时刻了。
Linux CentOS 7 安装字体库 & 中文字体 & 设置中文
原文:https://www.cnblogs.com/jasontang369/p/13904801.html