You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
610 B
Markdown

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

Linux中安装字体
我解决的主要是pdf转图片字体乱码的问题
1、命令安装
yum install -y fontconfig mkfontscale
2、查看字体
#查看系统中的字体
fc-list
#查看系统中的中文字体 第一次
fc-list :lang=zh
/3、安装字体
加入我要安装的字体是宋体simsun.ttf 文件
## 进入 fonts 目录
cd /usr/share/fonts
## 上传字体文件
## 提前下好的可以直接 cp 复制进去也一样
## cp simsun.ttf /usr/share/fonts
## 刷新配置
mkfontscale
mkfontdir
4、fc-cache 刷新
5、fc-list 能够看到刚刚已安装的字体了
重启pdf服务