Bootstrap

Liunx环境安装字体(simsun为例)

一:下载simsun字体文件包

链接:https://pan.baidu.com/s/1jelox8MalDJDWTyx4Z9ghw 
提取码:tttt

二:把解压后的simsun.ttf、simsun.ttc放到 /usr/share/fonts目录

在这里插入图片描述

三:安装

// 刷新字体缓存
[root@xxxxxx fonts]# fc-cache -vf
// 查看字体是否安装成功、出行以下字体列表说明已经安装成功
[root@xxxxxx fonts]# fc-list | grep "宋体"
/usr/share/fonts/simsun.ttc: SimSun,宋体:style=Regular
/usr/share/fonts/simsun.ttf: SimSun,宋体:style=Regular
/usr/share/fonts/simsun.ttc: SimSun\-PUA,宋体\-PUA:style=Regular
/usr/share/fonts/simsun.ttc: NSimSun,新宋体:style=Regular
;