遇到了,顺手记录下。
缺少字体库,可能会影响pdf或word等的预览,所以如果预览有问题,可以往这方面排查下。
linux安装字体库
/usr/share/fonts目录下,先上传font.zip,然后再安装即可。
1、yum -y install fontconfig
2、cd usr/share/fonts; mkdir chinses;
3、拷贝字体至以上文件夹
4、修改字体配置文件
vim /etc/fonts/fonts.conf
在里面添加一行(文件里面是多行dir配置):bash <dir>/usr/share/fonts/chinese</dir>
然后fc-cache刷新字体。