- 使用
rz -y
命令将windows楷体(simkai.ttf)拷贝到linux[root@mhy ~]# cd /usr/share/fonts/ [root@mhy fonts]# mkdir chinese [root@mhy fonts]# cd chinese/ [root@mhy chinese]# rz -y [root@mhy chinese]# chmod -R 755 /usr/share/fonts/chinese
- 配置字体,将
<dir>/usr/share/fonts/chinese</dir>
加入到Font list
加入配置字体[root@mhy chinese] vi /etc/fonts/fonts.conf
- 建立字体索引信息,更新字体缓存(切换到chinese目录,分别执行
mkfontscale
、mkfontdir
、fc-cache
命令)[root@mhy ~]# cd /usr/share/fonts/chinese [root@mhy chinese]# mkfontscale [root@bigdatahost chinese]# mkfontdir [root@bigdatahost chinese]# fc-cache
- 执行
fc-list :lang=zh
,查看是否安装成功
成功
网友评论