zoukankan      html  css  js  c++  java
  • linux 字体查询、添加字体方式

    1、查询到已经正常服务器上使用字体。

    2、字体查询命令:  fc-list

    3、将正常服务器上好用的字体:/usr/share/fonts 将fonts 文件下的所有文件拷贝下来。

    4、使用 root 账号 将拷贝下来的fonts 字体拷贝到 /usr/share/fonts 路径下。

    5、使用 root 账号执行如下:(使用非root账号的需要使用root授权)

            步骤一:cd /usr/share/fonts   --切换目录

          步骤二:执行:mkfontscale (如果提示 mkfontscale: command not found,要自己安装,安装命令: yum install mkfontscale,提示安装内容是否正确的话,敲Y,回车就好),安装完成要重新执行:mkfontscale 。针对不同系统,可能yum安装命令不一样的情况。

          步骤三:执行:mkfontdir
          步骤四:执行:fc-cache -fv (如果提示 fc-cache: command not found,要自己安装,安装命令: yum install fontconfig ,提示安装内容是否正确的话,敲Y,回车就好),安装完成要重新执行:fc-cache -fv
    7、fc-list  不正常显示,则需要重启linux服务器。reboot重启 服务器:

  • 相关阅读:
    [LeetCode]Search a 2D Matrix
    [LeetCode]Trapping Rain Water
    [LeetCode]Container With Most Water
    [LeetCode]Permutations
    [LeetCode]Missing Number
    [LeetCode]Set Matrix Zeroes
    [LeetCode]Find Peak Element
    [LeetCode]Balanced Binary Tree
    [LeetCode]Spiral Matrix II
    [LeetCode]Spiral Matrix
  • 原文地址:https://www.cnblogs.com/ljs05/p/13262414.html
Copyright © 2011-2022 走看看