字体默认存放路径:/usr/share/fonts
在/usr/share/fonts目录下建立一个子目录:
- [root@localhost fonts]# mkdir inconsolata
- 将需要安装的字体文件上传到步骤1中建立的目录中:
[root@localhost inconsolata]#rz
- 解压到当前目录:
[root@localhost inconsolata]# unzip inconsolata.zip
- 建立字体索引信息,并更新字体缓存:
[root@localhost inconsolata]# mkfontscale
[root@localhost inconsolata]# mkfontdir
[root@localhost inconsolata]# fc-cache
-
至此,字体已经安装完成
-
查看系统中安装的中文字体:
[root@localhost inconsolata]# fc-list