linux安装宋体字体

发布时间 2023-08-07 16:44:27作者: xh_Blog

如下:

1、宋体字体安装
描述:因流程服务中所选用的为宋体,而linux服务器本身没有宋体,因此需要额外安装宋体,安装字体步骤如下:
(1)在自己的电脑windows中搜索宋体字体文件simsun.ttc
(2)创建文件夹:/usr/share/fonts/zh_CN,并将字体文件拷贝到zh_CN中
(3)修改字体权限,使root以外的用户可以使用这些字体:
cd /usr/share/fonts/zh_CN
chmod 766 simsun.ttc    
(4)建立字体缓存:fc-cache -fv                
(5)安装中文支持:
CentOS 6:yum groupinstall *chinese*
CentOS 7:yum install kde-l10n-Chinese
(6)检查字体是否安装:fc-list :lang=zh
(7)重启,即可使用
仅供参考:
https://blog.csdn.net/myflysun/article/details/
78055247 https://blog.csdn.net/ouyangzhenxin/article/details/82387632

end