mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-08 23:32:12 +02:00
Fix
This commit is contained in:
@@ -47,6 +47,6 @@ module.exports = class FontCommand extends Command {
|
||||
ctx.fillRect(0, 0, canvas.width, canvas.height);
|
||||
ctx.fillStyle = 'black';
|
||||
fillTextWithBreaks(ctx, lines.join('\n'), 25, 25);
|
||||
return canvas.toBuffer();
|
||||
return canvas.toBuffer('image/png');
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user