linux如何安装中文字体库


Linux字体文件放在/usr/share/font/,只要将字体文件拷贝到这里就可以了。
这里示例安装Windows的所有字体。
1,新建文件夹,装Windows字体,方便管理。打开终端输入命令:mkdir win。
2,复制Windows下 的所有字体。cd命令切换到C盘挂载的目录,进入c:\windows\Fonts。使用cp命令复制字体:cp *.ttf *.TTF /home/username/win/。这样就把Windows的字体复制到了主目录下的win目录里面。
3,安装字体。终端输入:mv /home/username/win/ /usr/share/font/。移动到Linux字体库中。
4,刷新系统即刻生效,输入命令:fc-cache -fv。


[root@tonykorn97 fonts]# ll
总用量 14968
-rwxrwxrwx 1 root root 15323200 10月 26 10:47 simsun.ttc
[root@scm fonts]# fc-cache -fv 
/usr/share/fonts: caching, new cache contents: 2 fonts, 0 dirs
/usr/share/X11/fonts/Type1: skipping, no such directory
/usr/share/X11/fonts/TTF: skipping, no such directory
/usr/local/share/fonts: skipping, no such directory
/root/.fonts: skipping, no such directory
/var/cache/fontconfig: cleaning cache directory
/root/.fontconfig: not cleaning non-existent cache directory
fc-cache: succeeded
[root@tonykorn97 fonts]# 


[root@tonykorn97 fonts]# fc-list :lang=zh
华文彩云,STCaiyun:style=Regular
幼圆,YouYuan:style=Regular
华文琥珀,STHupo:style=Regular
方正姚体,FZYaoTi:style=Regular
新宋体,NSimSun:style=Regular
仿宋,FangSong:style=Normal,oby?ejné,Standard,Κανονικ?,Regular,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normálne,Navadno,Arrunta
楷体,KaiTi:style=Normal,oby?ejné,Standard,Κανονικ?,Regular,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normálne,Navadno,Arrunta
华文宋体,STSong:style=Regular
微软雅黑,Microsoft YaHei:style=Normal,oby?ejné,Standard,Κανονικ?,Regular,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normálne,Navadno,Arrunta
宋体,SimSun:style=Regular
华文仿宋,STFangsong:style=Regular
华文新魏,STXinwei:style=Regular
华文行楷,STXingkai:style=Regular
华文隶书,STLiti:style=Regular
黑体,SimHei:style=Normal,oby?ejné,Standard,Κανονικ?,Regular,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normálne,Navadno,Arrunta
华文中宋,STZhongsong:style=Regular
微软雅黑,Microsoft YaHei:style=Negreta,tu?né,fed,Fett,?ντονα,Bold,Negrita,Lihavoitu,Gras,Félk?vér,Grassetto,Vet,Halvfet,Pogrubiony,Negrito,Полужирный,Fet,Kal?n,Krepko,Lodia
方正舒体,FZShuTi:style=Regular
华文细黑,STXihei:style=Regular
隶书,LiSu:style=Regular
华文楷体,STKaiti:style=Regular
[root@tonykorn97 fonts]# 



来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/312079/viewspace-2127145/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/312079/viewspace-2127145/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值