美文网首页
centos中文字体安装

centos中文字体安装

作者: 阿乐_822e | 来源:发表于2022-10-20 17:07 被阅读0次

1、# yum -y install fontconfig ttmkfdir mkfontscale

2、# cd /usr/share/fonts && mkdir chinese && chmod -R 755 /usr/share/fonts/chinese

3、在windows机器的字体目录下寻找simhei.ttf、simhei.ttf两个文件上传至/usr/share/fonts/chinese

4、cd /usr/share/fonts/chinese && mkfontscale && mkfontdir && fc-cache

5、# fc-list :lang=zh
/usr/share/fonts/chinese/simsun.ttc: SimSun,宋体:style=Regular,常规
/usr/share/fonts/chinese/simsun.ttc: NSimSun,新宋体:style=Regular,常规
/usr/share/fonts/chinese/simhei.ttf: SimHei:style=Normal

OVER!

相关文章

网友评论

      本文标题:centos中文字体安装

      本文链接:https://www.haomeiwen.com/subject/scemzrtx.html