OS:RHEL8
首先下载需要安装的字体,我这边下载的是阿里巴巴的字体。打开https://alibabafont.taobao.com/,按照要求下载自己需要的字体。
首先安装 :fontconfig mkfontscale

yum install -y fontconfig mkfontscale

安装完毕就可以使用fc-list 命令查看系统中已经安装的字体.

fc-list
/usr/share/fonts/dejavu/DejaVuSerif-Bold.ttf: DejaVu Serif:style=Bold
/usr/share/fonts/paratype-pt-sans/PTS76F.ttf: PT Sans:style=Bold Italic
/usr/share/fonts/google-droid/DroidSansHebrew-Regular.ttf: Droid Sans:style=Regular
/usr/share/fonts/julietaula-montserrat/MontserratAlternates-Bold.ttf: Montserrat Alternates:style=Bold
/usr/share/fonts/urw-base35/NimbusMonoPS-Italic.otf: Nimbus Mono PS:style=Italic
/usr/share/fonts/dejavu/DejaVuSerif-Italic.ttf: DejaVu Serif:style=Italic
/usr/share/fonts/AlibabaSans-Italic.otf: Alibaba Sans:style=Italic
/usr/share/fonts/urw-base35/D050000L.t1: D050000L:style=Regular
/usr/share/fonts/urw-base35/NimbusSansNarrow-Regular.t1: Nimbus Sans Narrow:style=Regular
/usr/share/fonts/urw-base35/NimbusSansNarrow-BoldOblique.t1: Nimbus Sans Narrow:style=Bold Oblique
/usr/share/fonts/sil-padauk/Padauk-Regular.ttf: Padauk:style=Regular
/usr/share/fonts/paktype-naskh-basic/PakTypeNaskhBasic.ttf: PakType Naskh Basic:style=Regular
/usr/share/fonts/urw-base35/NimbusMonoPS-Bold.otf: Nimbus Mono PS:style=Bold
/usr/share/fonts/liberation/LiberationSans-Bold.ttf: Liberation Sans:style=Bold
......

查看系统中已经安装的中文字体 fc-list :lang=zh

fc-list :lang=zh
/usr/share/fonts/google-noto-cjk/NotoSerifCJK-Bold.ttc: Noto Serif CJK TC:style=Bold
/usr/share/fonts/google-noto-cjk/NotoSerifCJK-Bold.ttc: Noto Serif CJK SC:style=Bold
/usr/share/fonts/google-noto-cjk/NotoSerifCJK-Bold.ttc: Noto Serif CJK JP:style=Bold
/usr/share/fonts/google-noto-cjk/NotoSerifCJK-Bold.ttc: Noto Serif CJK KR:style=Bold
/usr/share/fonts/google-droid/DroidSansFallback.ttf: Droid Sans:style=Regular
......

以上可以看到字体都放在/usr/share/fonts/这个目录下,我们将下载的字体上传到这个目录下。
进入到/usr/share/fonts/ 目录下:依次运行以下命令 建立字体索引信息,更新字体缓存。

cd /usr/share/fonts
mkfontscale
mkfontdir
fc-cache -fv

至此,字体安装完毕。可以通过fc-list :lang=zh来查看安装的字体:

fc-list :lang=zh
/usr/share/fonts/Alibaba-PuHuiTi-Bold.otf: Alibaba PuHuiTi,阿里巴巴普惠体,Alibaba PuHuiTi B,阿里巴巴普惠体 B:style=Bold
/usr/share/fonts/google-noto-cjk/NotoSerifCJK-Bold.ttc: Noto Serif CJK TC:style=Bold
/usr/share/fonts/google-noto-cjk/NotoSerifCJK-Bold.ttc: Noto Serif CJK SC:style=Bold
/usr/share/fonts/google-noto-cjk/NotoSerifCJK-Bold.ttc: Noto Serif CJK JP:style=Bold
/usr/share/fonts/google-noto-cjk/NotoSerifCJK-Bold.ttc: Noto Serif CJK KR:style=Bold
/usr/share/fonts/google-droid/DroidSansFallback.ttf: Droid Sans:style=Regular
/usr/share/fonts/Alibaba-PuHuiTi-Medium.otf: Alibaba PuHuiTi,阿里巴巴普惠体,Alibaba PuHuiTi M,阿里巴巴普惠体 M:style=Medium,Regular
/usr/share/fonts/Alibaba-PuHuiTi-Light.otf: Alibaba PuHuiTi,阿里巴巴普惠体,Alibaba PuHuiTi L,阿里巴巴普惠体 L:style=Light,Regular
/usr/share/fonts/Alibaba-PuHuiTi-Heavy.otf: Alibaba PuHuiTi,阿里巴巴普惠体,Alibaba PuHuiTi H,阿里巴巴普惠体 H:style=Heavy,Regular
/usr/share/fonts/Alibaba-PuHuiTi-Regular.otf: Alibaba PuHuiTi,阿里巴巴普惠体,Alibaba PuHuiTi R,阿里巴巴普惠体 R:style=Regular
/usr/share/fonts/google-noto-cjk/NotoSerifCJK-Regular.ttc: Noto Serif CJK TC:style=Regular
/usr/share/fonts/google-noto-cjk/NotoSerifCJK-Regular.ttc: Noto Serif CJK SC:style=Regular
/usr/share/fonts/google-noto-cjk/NotoSerifCJK-Regular.ttc: Noto Serif CJK JP:style=Regular
/usr/share/fonts/google-noto-cjk/NotoSerifCJK-Regular.ttc: Noto Serif CJK KR:style=Regular
......

Linux下安装阿里巴巴普惠字体相关推荐

  1. 新出免费字体——阿里巴巴普惠字体(附安装使用教程)

    阿里巴巴普惠字体,免费使用 免费声明 下载 安装"阿里巴巴普惠体" 使用 免费声明 字体侵权真的是防不胜防! 但是现在有救了!阿里爸爸出了一款免费字体!免费!!! 在阿里巴巴的官方 ...

  2. qt设置 阿里巴巴普惠体 英文_怎样把免费的阿里巴巴普惠字体设置为Office全家桶软件主题字体?...

    您好,欢迎来到[爆炒Office],这里有原创的实用办公软件技巧.着手工作实际,解决办公问题. 概述 终于安装上了可以免费使用的阿里巴巴普惠字体. 虽然不是用于专业的商业设计上,但是作为日常Offic ...

  3. 阿里巴巴普惠字体下载链接

    阿里巴巴普惠字体下载链接 https://alibabafont.taobao.com/

  4. 在Linux下安装LaTeX+CJK+中文字体的方法 [转]

    1.下载texlive2003: http://www.ctex.org/modules.php?op=modload&name=Downloads&file=index&re ...

  5. (1)Linux下安装WPS缺的字体

    WPS既有Windows版本又有Linux版本,Linux安装WPS完成后启动,提示系统缺失字体,下载字体文件. 字体文件百度云盘链接地址:http://pan.baidu.com/s/1nuS5U5 ...

  6. linux安装下载中文包,linux下安装中文包和字体

    在虚拟机中使用中文输入法和中文显示 使用的是rhel5的镜像 我把其镜像挂载在/mnt/cdrom中,然后切换到/Server目录下,安装支持中文字体 Mount /dev/cdrom /mnt/cd ...

  7. 【工具】AlibabaPuHuiTi 阿里巴巴 普惠体 字体windows安装

    前言 阿里巴巴普惠体是商用免费的字体,项目上用到导出的功能,可以平替 "微软雅黑". 导出到pdf后,客户电脑虽然不需要安装这个字体,但是本地调试的时候可以安装一下. 百度搜出来的 ...

  8. 如何在项目中引入字体库(如阿里巴巴普惠体)

    1.先找到你需要的字体下载下来,然后解压. 比如:阿里巴巴普惠体,下载地址https://done.alibabadesign.com/puhuiti2.0 2.解压之后得到安装包,电脑需要安装的可以 ...

  9. Linux下安装自定义字体库

    Linux下安装自定义字体库 第一步.在Windos环境下找到字体库 如:C:\Windows\Fonts 第二步.找到Linux下字体库 如:/usr/share/fonts/chinese 第三步 ...

最新文章

  1. HaoheDI让ETL变得简单
  2. 登录form php一个页面跳转页面,form表单页面跳转方式提交练习
  3. [ 测试管理 ] 如何描述缺陷报告?
  4. android wi-fi_如何在Android手机上查找3G或Wi-Fi速度
  5. 【转】PF_INET 和 AF_INET 的区别
  6. 【SpringClould】 eureka 的自我保护机制
  7. Adobe 修复严重的 Photoshop 缺陷
  8. 解决jz2440不能ping同主机问题
  9. make指定输出目录
  10. 代理服务器proxy server是什么?有什么作用
  11. python学习实验报告(第五周)
  12. pandas之表格条件格式设置
  13. php排版word文档试卷,用word做试卷的排版
  14. MAC系统下解决Teamviewer 是商业用途只能连5分钟的问题--修改Teamviewer的id
  15. 来自CSDN或其它的精华网址
  16. 高尔夫热潮四月优雅袭卷鹏城,深圳值得期待的运动类别盛会
  17. 技嘉服务器主板装系统,技嘉AB350M-DS3H主板u盘重装系统win7教程
  18. Light OJ 1214
  19. Idea打包可运行jar
  20. 模板生成word文档 By POI+Word书签功能

热门文章

  1. vagrant简单学习使用
  2. itext报错PdfReader not opened with owner password
  3. 关于正则表达式的复习与总结
  4. Android开发学习路线图-腾讯课堂码牛学院
  5. android娃娃机源码,微信夹娃娃游戏娃娃机完整开源版源码(安装教程+三方支付)...
  6. (附源码)计算机毕业设计SSM金融投资管理系统
  7. 驱动中如何访问CPU中的寄存器?
  8. 【翻译】Postmortem-debugging-Go-services-with-Delve
  9. 解决高度塌陷的六种方法以及Grid网页布局补充
  10. PS理论:高斯模糊与高反差保留