安装字体库:yum -y install fontconfig

在/usr/share/fonts/目录下创建chinese目录

给chinese目录添加权限:chmod -R 755 /usr/share/fonts/chinese

安装ttmkfdir来搜索目录中所有的字体信息:yum -y install ttmkfdir

ttmkfdir -e /usr/share/X11/fonts/encodings/encodings.dir

修改字体配置文件:vi /etc/fonts/fonts.conf

刷新内存中的字体缓存:fc-cache

posted on 2017-05-18 19:14  选择困难症患者  阅读(2135)  评论(0)    收藏  举报