CentOS 6.X 安装中文字体

由于业务需要,需要对CentOS6.9添加中文字体支持

  • 安装工具包
yum install -y fontconfig mkfontscale
  • 安装完成后,使用fc-list命令查看系统中已经安装的字体
[root@aniu-pd-api-2 ~]# fc-list
Utopia:style=Bold Italic
Nimbus Sans L:style=Regular Italic
Hershey\-Gothic\-English:style=Regular
URW Palladio L:style=Roman
Century Schoolbook L:style=Bold Italic
DejaVu Sans,DejaVu Sans Condensed:style=Condensed Oblique,Oblique
Nimbus Sans L:style=Bold
Utopia:style=Bold
Hershey\-Plain\-Duplex\-Italic:style=Regular
URW Chancery L:style=Medium Italic
DejaVu Sans:style=Bold Oblique
Nimbus Roman No9 L:style=Regular
Century Schoolbook L:style=Bold
Century Schoolbook L:style=Italic
Nimbus Sans L:style=Regular
Hershey\-Plain\-Duplex:style=Regular
URW Palladio L:style=Italic
Nimbus Sans L:style=Bold Condensed
URW Gothic L:style=Demi
Nimbus Roman No9 L:style=Medium Italic
Nimbus Mono L:style=Bold Oblique
Dingbats:style=Regular
Nimbus Roman No9 L:style=Medium
Nimbus Sans L:style=Bold Italic
DejaVu Sans:style=Oblique
Nimbus Mono L:style=Regular
Hershey\-Plain\-Triplex:style=Regular
Hershey\-Script\-Simplex:style=Regular
URW Gothic L:style=Book
DejaVu Sans,DejaVu Sans Condensed:style=Condensed Bold Oblique,Bold Oblique
Utopia:style=Italic
Hershey\-Plain\-Triplex\-Italic:style=Regular
DejaVu Sans,DejaVu Sans Light:style=ExtraLight
Nimbus Sans L:style=Regular Condensed Italic
URW Bookman L:style=Demi Bold
URW Bookman L:style=Light
Hershey\-Script\-Complex:style=Regular
URW Gothic L:style=Demi Oblique
Standard Symbols L:style=Regular
DejaVu Sans,DejaVu Sans Condensed:style=Condensed,Book
DejaVu Sans,DejaVu Sans Condensed:style=Condensed Bold,Bold
URW Palladio L:style=Bold
Nimbus Sans L:style=Regular Condensed
URW Bookman L:style=Light Italic
Century Schoolbook L:style=Roman
Nimbus Roman No9 L:style=Regular Italic
DejaVu Sans:style=Bold
DejaVu Sans:style=Book
Hershey\-Gothic\-Italian:style=Regular
URW Gothic L:style=Book Oblique
URW Palladio L:style=Bold Italic
Nimbus Mono L:style=Regular Oblique
Utopia:style=Regular
Nimbus Mono L:style=Bold
Hershey\-Gothic\-German:style=Regular
Nimbus Sans L:style=Bold Condensed Italic
URW Bookman L:style=Demi Bold Italic
  • 查看系统中已经安装的中文字体
fc-list :lang=zh # 没安装中文字体前,笔者的系统没有任何中文字体支持
  • 安装字体

用户可以根据需要的字体进行针对性安装,笔者这里打包了win10下所有的字体,上传到服务器上进行安装

unzip win-fonts.zip -d /usr/share/fonts/
cd /usr/share/fonts/
mkfontscale
mkfontdir
fc-cache
[root@aniu-pd-api-1 fonts]# fc-list :lang=zh

这里写图片描述

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值