centos中文字体安装

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中文字体安装)