tnfe / FFCreator

A fast video processing library based on node.js (一个基于node.js的高速视频制作库)
http://tnfe.github.io/FFCreator/
MIT License
2.83k stars 400 forks source link

本地设置字体没问题,在服务器上运行一段时候后就找不到字体了,不知道是哪的问题? #421

Open shoestrong opened 6 months ago

shoestrong commented 6 months ago

通过const content = new FFText({font: path.join(dirname, 'xxx.ttf')}) 或者 content.setFont(path.join(dirname, 'xxx.ttf'))

都是不好使的。。。

drawcall commented 6 months ago

检查是否包含中文or空格

shoestrong commented 6 months ago

@drawcall 用的是英文字体 Inter

image

系统是Amzn2