1.创建路径:mkdir /usr/share/fonts/chinese/TrueType
2.将字体文件(.ttc)文件(可以从window c:\windows\fonts文件夹拷贝)放置在/usr/share/fonts/chinese/TrueType文件下
3.修改权限:
# cd /usr/share/fonts/chinese/TrueType
# chmod 755 *.ttf
4.字体缓存:
(1)#mkfontscale(如果提示mkfontscale: command not found,运行命令# yum install mkfontscale )
(2)#mkfontdir
(3)# fc-cache -fv(如果提示fc-cache: command not found,运行命令# yum install fontconfig )
5. 执行以下命令让字体生效
#source /etc/profile
6.重启应用程序