Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shoestrong opened this issue Mar 13, 2024 · 2 comments

Comments

@shoestrong
Copy link

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

都是不好使的。。。

@drawcall
Copy link
Member

检查是否包含中文or空格

@shoestrong
Copy link
Author

@drawcall 用的是英文字体 Inter
image
系统是Amzn2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants