美文网首页OpenLayers
CentOS 7安装字体

CentOS 7安装字体

作者: sprainkle | 来源:发表于2019-12-29 20:00 被阅读0次

安装fontconfig

# 安装 fontconfig
yum -y install fontconfig

执行完该指令后就可以看到/usr/share/fonts/usr/share/fontconfig目录。

导入字体

# 创建目录
cd /usr/share/fonts
mkdir /usr/share/fonts/chinese
# 修改目录权限
chmod -R 755 /usr/share/fonts/chinese

# 复制字体库到chinese目录
# cp ... ...

# 建立字体缓存
mkfontscale
mkfontdir

# 刷新内存中的字体缓存
fc-cache –fv
# 执行以下命令让字体生效
source /etc/profile

# 查看系统安装字体
fc-list

相关文章

网友评论

    本文标题:CentOS 7安装字体

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