mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -70,7 +70,7 @@ module.exports = class TweetCommand extends Command {
|
||||
const ctx = canvas.getContext('2d');
|
||||
ctx.font = this.client.fonts.get('ChirpRegular.ttf').toCanvasString(23);
|
||||
const lines = await wrapText(ctx, text, 710);
|
||||
const linesLen = (23 * lines.length) + (7 * (lines.length - 1)) + 15;
|
||||
const linesLen = (23 * lines.length) + (5 * (lines.length - 1)) + 15;
|
||||
canvas.height += linesLen;
|
||||
let imageHeight = 0;
|
||||
ctx.fillStyle = 'black';
|
||||
|
||||
Reference in New Issue
Block a user