centos7.9 缺失中文字体解决办法

1.fc-list 判断有没有中文字体库
2.没有,执行 yum -y install fontconfig 安装
3.在Windows系统中C:Windows\Fonts目录下找到宋体simsunttc文件
4.在linux 系统中,/usr/share/fonts/目录下创建chinese文件夹并把simsun.ttc放在chinese文件夹里
5.在/etc/fonts/目录下找到fonts.conf文件并添加

/usr/share/fonts/chinese
6.查看是否安装成功,fc-list :lang=zh

你可能感兴趣的:(linux)