Fedora、CentOS install TTF/otf fonts
Step 1:切换至字体下载目录:
[Richard@localhost Downloads]$ ll | grep otf
-rw-rw-r--. Richard Richard 7月 RBNo2Light_a.otf
-rw-rw-r--. Richard Richard 7月 RBNo2Light.otf
Step 2:切换至root用户:
[Richard@localhost Downloads]$ su
密码:
[root@localhost Downloads]#
Step 3:新建/usr/share/fonts/default/TrueType目录
[root@localhost Downloads]# mkdir /usr/share/fonts/default/TrueType
Step 4:把字体拷贝到新建的目录下
[root@localhost Downloads]# cp RBNo2Light*.otf /usr/share/fonts/default/TrueType/
Step 5:切换至字体所在目录
[root@localhost Downloads]# cd /usr/share/fonts/default/TrueType/
Step 6:创建fonts.scale
[root@localhost TrueType]# ll
总用量
-rw-r--r--. root root 12月 : RBNo2Light_a.otf
-rw-r--r--. root root 12月 : RBNo2Light.otf
[root@localhost TrueType]# ttmkfdir
[root@localhost TrueType]# ll
总用量
-rw-r--r--. root root 12月 : fonts.scale
-rw-r--r--. root root 12月 : RBNo2Light_a.otf
-rw-r--r--. root root 12月 : RBNo2Light.otf
Step 7:创建fonts.dir
[root@localhost TrueType]# mkfontdir
[root@localhost TrueType]# ll
总用量
-rw-r--r--. root root 12月 : fonts.dir
-rw-r--r--. root root 12月 : fonts.scale
-rw-r--r--. root root 12月 : RBNo2Light_a.otf
-rw-r--r--. root root 12月 : RBNo2Light.otf
Step 8: 将字体路径添加到X Font serve 路径(或者[root@localhost Downloads]# /usr/sbin/chkfontpath --add /usr/share/fonts/default/TrueType):
[root@localhost TrueType]# chkfontpath --add /usr/share/fonts/default/TrueType
Step 9:更新字体信息cache
[root@localhost TrueType]# fc-cache
Step 10:查看字体
[Richard@localhost Downloads]$ fc-list :lang=en | grep RB
/usr/share/fonts/default/TrueType/RBNo2Light.otf: RBNo2 Light:style=Regular
/usr/share/fonts/default/TrueType/RBNo2Light_a.otf: RBNo2 Light Alternative :style=Regular
备注:如果没有chkfontpath,则安装chkfontpath(chkfontpath依赖xfs),安装方法如下:
Step 1: http://rpm.pbone.net/index.php3/stat/4/idpl/13943722/dir/centos_5/com/chkfontpath-1.10.1-1.1.x86_64.rpm.html下载chkfontpath-1.10.1-1.1.x86_64.rpm,然后安装。
Step 2:rpm安装chkfontpath(可能缺少依赖)
[Richard@localhost Downloads]$ chmod +x chkfontpath-1.10.-1.1.x86_64.rpm
[Richard@localhost Downloads]$ sudo rpm -ivh chkfontpath-1.10.-1.1.x86_64.rpm
[sudo] password for Richard:
警告:chkfontpath-1.10.-1.1.x86_64.rpm: 头V3 DSA/SHA1 Signature, 密钥 ID e8562897: NOKEY
错误:依赖检测失败:
xfs 被 chkfontpath-1.10.-1.1.x86_64 需要
Step 3:安装xfs依赖
[Richard@localhost Downloads]$ sudo yum install xfs
已加载插件:fastestmirror, langpacks, refresh-packagekit
Repository updates is listed more than once in the configuration
Repository updates-debuginfo is listed more than once in the configuration
Repository updates-source is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository updates-debuginfo is listed more than once in the configuration
Repository updates-source is listed more than once in the configuration
Repository fedora is listed more than once in the configuration
Repository fedora-debuginfo is listed more than once in the configuration
Repository fedora-source is listed more than once in the configuration
Repository fedora is listed more than once in the configuration
Repository fedora-debuginfo is listed more than once in the configuration
Repository fedora-source is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* fedora: mirrors..com
* rpmfusion-free-rawhide: ftp.sjtu.edu.cn
* rpmfusion-nonfree-rawhide: mirrors..com
* updates: mirrors..com
正在解决依赖关系
--> 正在检查事务
---> 软件包 xorg-x11-xfs.x86_64.1.1.1.2-.fc20 将被 安装
--> 解决依赖关系完成 依赖关系解决 ================================================================================
Package 架构 版本 源 大小
================================================================================
正在安装:
xorg-x11-xfs x86_64 :1.1.-.fc20 fedora k 事务概要
================================================================================
安装 软件包 总下载量: k
安装大小: k
Is this ok [y/d/N]: y
Downloading packages:
xorg-x11-xfs-1.1.-.fc20.x86_64.rpm | kB :
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction (shutdown inhibited)
正在安装 : :xorg-x11-xfs-1.1.-.fc20.x86_64 /
验证中 : :xorg-x11-xfs-1.1.-.fc20.x86_64 / 已安装:
xorg-x11-xfs.x86_64 :1.1.-.fc20 完毕!
Step 4:使用RPM安装chkfontpath:
[Richard@localhost Downloads]$ sudo rpm -ivh chkfontpath-1.10.-1.1.x86_64.rpm
警告:chkfontpath-1.10.-1.1.x86_64.rpm: 头V3 DSA/SHA1 Signature, 密钥 ID e8562897: NOKEY
准备中... ################################# [%]
正在升级/安装...
:chkfontpath-1.10.-1.1 ################################# [%]
[Richard@localhost Downloads]$
参考:http://vijayk.blogspot.jp/2005/05/how-to-install-ttfotf-fonts-in-linux.html
Fedora、CentOS install TTF/otf fonts的更多相关文章
- fedora、centos、rhel安装Adobe Flash Player 28
切换到root用户 添加Adobe Repository Adobe Repository 32-bit x86 rpm -ivh http://linuxdownload.adobe.com/ado ...
- 红帽旗下Linux的版本说明RedHat、CentOS、Fedora、OEL等
简单总结一下RedHat.CentOS.Fedora Core区别关系: RedHat: 红帽已经被IBM 340亿刀收购了,但是红帽依旧发型自己的RedHat enterprise linux 版本 ...
- Fedora、SuSE、Redhat、Ubuntu、Centos
想学Linux,但版本太多了,如Fedora.SuSE.Redhat.Ubuntu等,不免让人眼花缭乱,那么初学者该如何选择呢?也许很多人会不屑的说,Linux不就是个操作系统么.错!Linux不是一 ...
- 如何在Fedora或CentOS上使用Samba共享
如今,无论在家里或者是办公场所,不同的电脑之间共享文件夹已不是什么新鲜事了.在这种趋势下,现代操作系统通过网络文件系统的方式使得电脑间数据的交换变得简单而透明.如果您工作的环境中既有微软的Window ...
- (实用)Ubuntu 、CentOS更换国内源
Ubuntu更换apt-get源 通过编辑/etc/apt/sources.list文件,我们能够更换Ubuntu的默认软件更新源.通常是将其换成一些国内比较知名的源.本文主要列举这些内容. 注意,在 ...
- 1、CentOS 6 安装GitLab
1.安装和配置必需的依赖项 在CentOS上将系统防火墙打开HTTP和SSH访问. sudo yum install -y curl policycoreutils-python openssh-se ...
- Xshell 连接centOS虚拟机、centOS内置python版本升级
Xshell 连接虚拟机 前置条件:VMware Workstation 12.5.1.Xshell 5 . centOS 6.6 1.打开虚拟机,输入用户名和密码: 2.输出命令:ifconfig ...
- 二十八、CentOS系统光盘安装、anaconda概述
常见问题你会感觉 tftp timeout: 防火墙 time out script: 网关没有指定,在dhcpd.conf中 不能下载:vmlinuz和initrd程序和安装的系统版本不一致 内存必 ...
- 一、CentOS 7安装部署GitLab服务器
一.CentOS 7安装部署GitLab服务器 1.安装依赖软件 yum -y install policycoreutils policycoreutils-python openssh-serve ...
随机推荐
- ILSpy,DLL反编译工具,学习与了解原理的好帮手
你是否一直苦于找到了好的dll却只知道怎么使用而不知道其原理. 你是否在使用一个dll的时候发现它在一些参数时报错了却没法解决. 你是否想成为一个优秀的.net开发,成为一个优秀的系统制造者. 那你需 ...
- uva 11524 - InCircle (二分法)
题意:三角形ABC的内切圆把它的三边分别划分成 m1:n1,m2:n2 和 m3:n3 的比例.另外已知内切圆的半径 r ,求三角形ABC 的面积. #include<iostream> ...
- H面试程序(11): 判断字符串是否包含子串问题
题目描述: 如字符串str1为''abcdef''' 字符串str2为'' bc''; 则字符串str1中含有 ...
- ecside使用笔记(1)
1. 部分属性描写叙述: 属性: tableId 描写叙述: 设置列表的唯一标识,默觉得"ec",当一个页面内有多个ECSIDE列表时,必须为每一个列表指定不同的 tableId ...
- 2014 ACM省赛总结
今年ACM省赛已经过去一个星期左右了,2年的ACM训练是该做个总结了,因为前几日去參加蓝桥杯总决赛,所以没来的及写总结,如今在这小小总结一下吧-- 依晰记得去年省赛时候的样子,如今感觉那时像是个无知的 ...
- 树形控件CTreeCtrl的使用
树形控件在界面编程中应用十分普遍,如在资源管理器中和树形结构显示书的文件夹等,我们一步步研究树形控件的使用. 在对话框界面上首先拖动创建一个树,一般我们改变三个属性: Has Buttons显示带有& ...
- JQuery中html()方法的注意事项
.html方法当不传参数时用来获取元素的html内容, return this[0] && this[0].nodeType === 1 ? this[0].innerHTML.rep ...
- asp.net linq查询环境搭建
本文是以sqlserver2008为数据库,vs2013为开发工具来介绍的. 要搭建这样一个数据库的操作环境,首先建立一个类库项目 然后在这个类库项目中添加几个类:DBDataContext数据库上下 ...
- .net通用权限框架B/S(一)
一直做软件实施,用过一些二次开发平台,最近看了一些大神写的框架,于是参考写了一个B/S通用权限框架,项目使用MVC4+EF5+EASYUI(.net framework4),开发环境vs2010+sq ...
- WCF Test Client
WCF测试客户端(WCF Test Client)是一个用来测试WCF服务程序的调试工具,能够使开发WCF服务更加方便. 在Visual Studio之外打开WCF测试客户端有两种方法:第一种方法是到 ...