• centos 7 添加windows 字体


    环境:

    centos 7

    mono 5.2  Asp.net MVC5

    问题:

    在生成验证码时报,验证码无法显示,字体集找不到

    解决:

    到windows 系统中,拷贝字体到centos中。

    windows 字体集在“C:WindowsFonts”。

    centos字体集在“/usr/share/fonts”

    步骤:

    1、mkdir /usr/share/fonts/windows

    2、先从你本机 C:WindowsFonts 拷贝或者网络上下载你想要安装的字体文件(*.ttf文件)到/usr/share/fonts/windows目录下

    3、修改字体文件的权限,使root用户以外的用户也可以使用

     cd /usr/share/fonts/windows

     chmod 755 *.ttf

    3、建立字体缓存

     mkfontscale (如果提示 mkfontscale: command not found,需自行安装 # yum install mkfontscale )

     mkfontdir

     fc-cache -fv (如果提示 fc-cache: command not found,则需要安装# yum install fontconfig )

    4、重启计算机

    reboot

  • 相关阅读:
    加密文件夹 | 彻底隐藏文件夹
    Swing的概述
    Java SE练习题——求奇数
    多线程有什么用?
    Robot的使用
    基础的Servlet
    Angular Resolver 学习
    GoLang 学习
    Angular Material 控件学习
    Angular 学习小记
  • 原文地址:https://www.cnblogs.com/hobinly/p/7442658.html
Copyright © 2020-2023  润新知