前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >CentOS 6.X 安装中文字体

CentOS 6.X 安装中文字体

作者头像
shaonbean
发布2018-01-02 11:54:00
2K0
发布2018-01-02 11:54:00
举报
文章被收录于专栏:运维前线运维前线

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

  • 安装工具包
代码语言:javascript
复制
yum install -y fontconfig mkfontscale
  • 安装完成后,使用fc-list命令查看系统中已经安装的字体
代码语言:javascript
复制
[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
  • 查看系统中已经安装的中文字体
代码语言:javascript
复制
fc-list :lang=zh # 没安装中文字体前,笔者的系统没有任何中文字体支持
  • 安装字体

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

代码语言:javascript
复制
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
这里写图片描述
这里写图片描述
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档