码迷,mamicode.com
首页 > 系统相关 > 详细

Linux - CentOS7 安装中文字体

时间:2020-04-09 15:31:59      阅读:106      评论:0      收藏:0      [点我收藏+]

标签:spl   linux   字体   display   editable   start   centos   文字   tab   

如何在CentOS7上安装中文字体

# 安装软件
yum -y install fontconfig

# 我们查看当前系统中已经有的字体
[root@loanapp opt]# fc-list
/usr/share/fonts/dejavu/DejaVuSansCondensed-Oblique.ttf: DejaVu Sans,DejaVu Sans Condensed:style=Condensed Oblique,Oblique
/usr/share/fonts/dejavu/DejaVuSansCondensed-Bold.ttf: DejaVu Sans,DejaVu Sans Condensed:style=Condensed Bold,Bold
/usr/share/fonts/dejavu/DejaVuSans.ttf: DejaVu Sans:style=Book
/usr/share/fonts/dejavu/DejaVuSans-Bold.ttf: DejaVu Sans:style=Bold
/usr/share/fonts/dejavu/DejaVuSansCondensed.ttf: DejaVu Sans,DejaVu Sans Condensed:style=Condensed,Book
/usr/share/fonts/dejavu/DejaVuSans-ExtraLight.ttf: DejaVu Sans,DejaVu Sans Light:style=ExtraLight
/usr/share/fonts/dejavu/DejaVuSansCondensed-BoldOblique.ttf: DejaVu Sans,DejaVu Sans Condensed:style=Condensed Bold Oblique,Bold Oblique
/usr/share/fonts/dejavu/DejaVuSans-Oblique.ttf: DejaVu Sans:style=Oblique
/usr/share/fonts/dejavu/DejaVuSans-BoldOblique.ttf: DejaVu Sans:style=Bold Oblique

# 然后切换到这个字体存放目录
cd /usr/share/fonts

# 创建一个我们自定义的目录进去
mkdir Song

# 然后把我们准备好的字体文件上传到这个目录中
STSONG.TTF & simsun.ttc

# 最后,我们刷新字体
fc-cache -fv

注意:有些时候需要重启应用或者服务器才能生效。

Linux - CentOS7 安装中文字体

标签:spl   linux   字体   display   editable   start   centos   文字   tab   

原文地址:https://www.cnblogs.com/duchaoqun/p/12667091.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!