zoukankan      html  css  js  c++  java
  • CentOS安装Windows字体

    1. 在Windows系统C:WindowsFonts找到要安装的字体文件

    2. 在CentOS系统中查询在/usr/share/下是否有fontconfigfonts目录

    3. 如果没有需要安装yum install fontconfig

    4. 安装好后,进入到/usr/share/fonts/,创建chinese目录

    5. 移动找到的字体文件到chinese目录下

    6. 修改权限:chmod -R 755 /usr/share/fonts/chinese

    7. 安装ttmkfdir执行后修改配置文件

      yum -y install ttmkfdir
      ttmkfdir -e /usr/share/X11/fonts/encodings/encodings.dir
      vim /etc/fonts/fonts.conf
      # 把 <dir>/usr/share/fonts/chinese</dir> 添加到文件中
      

    8. 刷新缓存fc-cache

    9. 查看字体fc-list

  • 相关阅读:
    File操作
    集合
    几个python资料地址
    Case1-用list写shoppingcart
    字符串操作
    运算-Dictionary
    运算-list
    Python数据类型
    标准库和库导入
    Pycharm
  • 原文地址:https://www.cnblogs.com/os-linux/p/15006224.html
Copyright © 2011-2022 走看看