linux 安装中文字体(生成图片中文乱码解决)

下载 MSYH.TTF 

yum -y install fontconfig

 

查看已经安装的字体:

fc-list

 查看是否安装中文字体:

fc-list :lang=zh

 

查看字体目录, 把字体上传 重启(或者刷新字体)服务器即可

cd  /usr/share/fonts

 

刷新字体

fc-cache -vf

  

posted @ 2021-12-03 14:03  qukaige  阅读(291)  评论(0编辑  收藏  举报