FFCreator icon indicating copy to clipboard operation
FFCreator copied to clipboard

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

Open Bengao123 opened this issue 1 year ago • 2 comments

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});

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

Bengao123 avatar Dec 12 '23 13:12 Bengao123

对比demo操作呢

drawcall avatar Dec 26 '23 07:12 drawcall