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.
610 B
610 B
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服务