项目在win10下是正常运行的,但是放到linux下Pdf转的IMG中中文全部乱码:
解决方法:
到C:\Windows\Fonts 下拷贝自己想要的字体
在linux下的 /usr/share 下找到fonts文件夹,如果没有找到,那就新建。进入fonts目录,再新建文件夹,名字随便写,如msyh,把从Windows上拷的目录放到这个新建的文件夹msyh内.
执行 fc-cache -fv 命令
再次生成IMG图片,查看:
项目在win10下是正常运行的,但是放到linux下Pdf转的IMG中中文全部乱码:
解决方法:
到C:\Windows\Fonts 下拷贝自己想要的字体
在linux下的 /usr/share 下找到fonts文件夹,如果没有找到,那就新建。进入fonts目录,再新建文件夹,名字随便写,如msyh,把从Windows上拷的目录放到这个新建的文件夹msyh内.
执行 fc-cache -fv 命令
再次生成IMG图片,查看: