1、在宿主机新建chinese目录
[root@HS-AP-application ~]#mkdir /usr/share/fonts/chinese
2、上传字体
把windows c盘下的Windows/Fonts下的所有字段上传至/usr/shared/fonts/chinese
3、授权chinese目录
chmod -R 755 /usr/share/fonts/chinese
4、生成fonts.scale文件
yum -y install fontconfig
yum -y install ttmkfdir
ttmkfdir -e /usr/share/X11/fonts/encodings/encodings.dir
vim /etc/fonts/fonts.conf 添加字体列表
fc-cache 刷新内存中的字体缓存,这样就不用reboot重启
注:这样添加字体就会在内存中开辟空间,供容器调用使用,字体路径为: