1.操做系统环境centos
[root@iZ254rf8Z ~]# cat /etc/issue\SKernel \r on an \m
2.安装字体管理工具,命令以下缓存
[root@iZ254rf8Z TrueType]# yum install fontconfig mkfontscale
3.把Windows下字体放在服务器相应目录,示例以下
注:Windows字体目录C:\Windows\Fonts
服务器
mkdir -pv /usr/share/fonts/chinese/TrueType
注:建立字体目录,并把相应字体上传到此目录便可ide
4.创建字体缓存工具
[root@iZ254rf8Z ~]# cd /usr/share/fonts/chinese/TrueType [root@iZ250234rf8Z TrueType]# mkfontscale [root@iZ250234rf8Z TrueType]# mkfontdir [root@iZ250234rf8Z TrueType]# fc-cache -fv
5.查看字体字体
[root@iZ250234rf8Z TrueType]# fc-list |grep SimSun /usr/share/fonts/chinese/TrueType/simsun.ttc: SimSun,宋体:style=Regular,常规 /usr/share/fonts/chinese/TrueType/simsun.ttc: NSimSun,新宋体:style=Regular,常规
reboot重启便可使用centos7