先安装字体管理软件
?
| 1 | [root@localhost ~] # yum install fontconfig |
将需要安装的字体放到/usr/share/fonts/chinese/目录下
如果不存在这个目录,可以自行创建
修改目录权限,以便其他用户也可以使用
?
| 1 | [root@localhost ~] # chmod -R 755 /usr/share/fonts/chinese |
应用更改
?
| 1 | [root@localhost ~] # fc-cache -fv |
注意,某些应用可能需要重启才能生效
使用下面的命令可以查看已经安装的字体
?
| 1 | [root@localhost ~] # fc-list |
搬瓦工中文网






