1. 下载SourceCodePro字体,后缀应为.ttf。
2. 将字体文件复制到fonts(/usr/share/fonts)文件夹下:
[root@centos fonts]# mv /home/seif/Downloads/SourceCodePro .
3. 修改字体文件的权限,使root用户以外的用户也可以使用:
[root@centos fonts]# cd SourceCodePro/
[root@centos SourceCodePro]# chmod 755 *.ttf
[root@centos SourceCodePro]# ls -l
总用量 624
-rwxr-xr-x. 1 seif seif 103764 9月 30 2012 SourceCodePro-Black.ttf
-rwxr-xr-x. 1 seif seif 103512 9月 30 2012 SourceCodePro-Bold.ttf
-rwxr-xr-x. 1 seif seif 104760 9月 30 2012 SourceCodePro-ExtraLight.ttf
-rwxr-xr-x. 1 seif seif 104408 9月 30 2012 SourceCodePro-Light.ttf
-rwxr-xr-x. 1 seif seif 103820 9月 30 2012 SourceCodePro-Regular.ttf
-rwxr-xr-x. 1 seif seif 103500 9月 30 2012 SourceCodePro-Semibold.ttf
4. 建立字体缓存:
[root@centos SourceCodePro]# mkfontscale
[root@centos SourceCodePro]# mkfontdir
[root@centos SourceCodePro]# fc-cache -fv
参考:http://blog.csdn.net/u012724167/article/details/53510589
相关文章:
- linux CentOS7 安装字体库-转 2022-01-27
- centos7 下安装思源黑体字体 2021-12-16
- centos7安装宋体 2021-11-11
- Linux安装字体 Linux安装字体 2021-12-04
- 实体机安装centOS7 2021-11-04
- centos7 安装设置网络及字体大小 2022-01-09
- Centos7 使用 Ansible 批量安装中文字体 2020-05-10
- Centos7 安装wps &启动问题&字体问题 2022-12-23