fc-list查看已安装的字体[root@test_basic-jietiao ~]# fc-list Utopia:style=Bold Italic Nimbus Sans L:style=Regular Italic Hershey\-Gothic\-English:style=Regular URW Palladio L:style=Roman Century Schoolbook L:style=Bold Italic DejaVu Sans,DejaVu Sans Condensed:style=Condensed Oblique,Oblique Nimbus Sans L:style=Bold Utopia:style=Bold Hershey\-Plain\-Duplex\-Italic:style=Regular查看中文字体 fc-list :lang=zh[root@test_basic-jietiao ~]# fc-list :lang=zh [root@test_basic-jietiao ~]#在/user/fonts下创建文件夹 chinese存放中文字体[root@test_basic-jietiao fonts]# cd /usr/share/fonts [root@test_basic-jietiao fonts]# ls default dejavu [root@test_basic-jietiao fonts]# mkdir chinese [root@test_basic-jietiao fonts]# ls chinese default dejavu将相关字体文件复制进/user/fonts文件夹下[root@test_basic-jietiao fonts]# ls chinese arial unicode ms.ttf arialuni.ttf CG Times.ttf simkai.ttf simsun.ttc查看中文字体 fc-list :lang=zh[root@test_basic-jietiao fonts]# fc-list :lang=zh KaiTi_GB2312,楷体_GB2312:style=Regular NSimSun,新宋体:style=Regular SimSun,宋体:style=Regular Arial Unicode MS:style=Regular,Normal,obyčejné,Standard,Κανονικά,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normálne,Navadno,Arrunta
表示字体安装成功
fc-cache
扫描字体目录并生成字体信息的缓存,然后应用程序就可以立即使用这些新安装的字体。[root@test_basic-jietiao fonts]# fc-cache [root@test_basic-jietiao fonts]#