laravel 使用PhantomMagick导出pdf ,在Linux下安装字体

git项目地址:https://github.com/anam-hossain/phantommagick

 sudo apt-get -y install fontconfig xfonts-utils

首先我们在Windows下找到储存字体的文件夹,字体储存在C盘里:路径为c:\WINDOWS\Fonts

传到服务器上将三个文件移动到 /usr/share/fonts/truetype/下

执行:sudo fc-cache -fv  刷新系统

 

posted @ 2018-10-23 18:08  花泪哲  阅读(389)  评论(0编辑  收藏  举报