您的位置:首页 > 运维架构 > Linux

centos7安装中文宋体

2016-06-27 10:49 519 查看

centos7安装中文宋体

1.操作系统环境
[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
注:创建字体目录,并把相应字体上传到此目录即可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重启即可使用
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息