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

为什么我使用新增字体无效,你们有没有遇到呢 #415

Open
Bengao123 opened this issue Dec 12, 2023 · 2 comments
Open

为什么我使用新增字体无效,你们有没有遇到呢 #415

Bengao123 opened this issue Dec 12, 2023 · 2 comments

Comments

@Bengao123
Copy link

const font2 = path.join(__dirname, './assets/font/font2.ttf');
let textTitle = new FFText({ text: ‘新增的字体’, x: width / 2, y: 380, fontSize: 40 });
textTitle.setColor('#ffffff');
textTitle.setFont(font2);

textTitle.alignCenter();
textTitle.setStyle({ padding: 10 ,width:600});

代码如上,你们有没有遇到呢

@drawcall
Copy link
Member

对比demo操作呢

@iguojincom
Copy link

这问题确实奇怪,我用ubuntu22.04开始是好的,后来就不行了,我换了24.04目前是好的

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

3 participants