oracle /etc/fonts simfang.ttf,Linux Install Font - linux安装字体

1.首先获得字体文件

simfang.ttf 仿宋体

simhei.ttf 黑体

simkai.ttf 楷体

simsun.ttf 宋体和新宋体,原文件名simsun.ttc

tahoma.ttf tahoma字体

tahomabd.ttf tahoma字体的粗体形式

verdana.ttf verdana字体

verdanab.ttf verdana字体的粗体形式

verdanai.ttf verdana字体的斜体形式

verdanaz.ttf verdana字体的粗体+斜体形式

2.安装

方法一,建立链接

cd /usr/share/fonts

ln -s /home/fwolf/tools/fonts xpfonts

cd xpfonts

mkfontscale

mkfontdir

这样作和把字体拷贝到/usr/share/fonts的一个目录下的效果是一样的。

方法二,复制

cd /usr/share/fonts

mkdir source-code-pro

cp /home/qxxx/source-code-pro-font ./

mkfontscale

mkfontdir

后面的两个mkfont命令是生成xpfonts目录下所包含的字体的索引信息。

然后运行fc-cache命令更新字体缓存:

fc-cache

现在,应该说linux就可以使用这些新装上的中文字体了

-----------------------------------------------

关于字体的格式:

图标是TT的,扩展名是TTF,指的是TureType字体,关于它的介绍,参见:http://baike.baidu.com/view/747447.htm

图标是O的,扩展名是OTF,指的是OpenType字体,关于它的介绍,参见:http://baike.baidu.com/view/1352360.htm

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
一共包含两大字体包,一大是代码编程字体,一大是所有常用中英文ttf字体包,包含几个手写字体 代码编程包包括:Akkurat-Mono、Andale-Mono、Anonymous-Pro、Consolas、Courier-New、Cousine、Crystal、Deja-Vu-Sans-Mono、Droid-Sans-Mono、Edlo、Fira-Code、Hermit、Incons等25种编程字体(其中包括十种曾经评选出来的十种最佳编程字体中的九种) 中英文字体包包括:times new roman,中山行书百年纪念版,calibri,Christopherhand,DejaVuSansMono,方正兰亭黑,James Fajardo,Monaco,微软雅黑,仿宋,黑体,楷体,宋体,yahei_mono,仿宋_GB2312,楷体_GB2312,迷你简行楷碑。 文件名列表: bb1550.ttf、calibri.ttf、calibrib.ttf、calibrii.ttf、calibriz.ttf、comesinhandy.ttf、DejaVuSansMono-Bold.ttf、 DejaVuSansMono-BoldOblique.ttf、DejaVuSansMono-Oblique.ttf、DejaVuSansMono.ttf、DroidSansFallback.ttf James_Fajardo.ttf、 Monaco.ttf、msyh.ttf、msyhbd.ttfsimfang.ttf、 simhei.ttf、simkai.ttf、simsun.ttc、times.ttf、timesbd.ttf、timesbi.ttf、timesi.ttf、yahei_mono.ttf、仿宋_GB2312.ttf、使用方法.txt、楷体_GB2312.ttf、迷你简行楷碑.TTF 使用方法: windows: 将所有的ttf文件拷贝到 系统所在分区的windows\fonts 目录下即可 linuxInstall and configure Unicode TrueType fonts in Linux Uncompress the downloaded font archive to a directory and add it to the font path, a list of directories containing fonts: 1. Uncompress the archive # tar xvzf utf8.tar.gz or # tar xvjf arial.tar.bz2 2. Create a directory for new fonts # mkdir /usr/share/fonts/truetype 3. Move the uncompressed font files to the new font directory # mv *.ttf /usr/share/fonts/truetype 4. Navigate to the font directory # cd /usr/share/fonts/truetype 5. Create fonts.scale and fonts.dir # mkfontscale && mkfontdir # fc-cache 6. Add the new font directory to the X11 font path # chkfontpath --add /usr/share/fonts/truetype 7. Restart X font server # /etc/rc.d/init.d/xfs restart You can verify the successful addition of the new path by running chkfontpath command or by listing X font server's /etc/X11/XF86Config file.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值