mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 06:10:49 +02:00
Fix
This commit is contained in:
@@ -69,7 +69,7 @@ module.exports = class TweetCommand extends Command {
|
||||
ctx.font = this.client.fonts.get('ChirpRegular.ttf').toCanvasString(23);
|
||||
const lines = wrapText(ctx, text, 710, true);
|
||||
const metrics = measureTextHeightWithBreaks(ctx, lines.join('\n'));
|
||||
const linesLen = metrics + 10;
|
||||
const linesLen = metrics + 5;
|
||||
canvas.height += linesLen;
|
||||
let imageHeight = 0;
|
||||
ctx.fillStyle = 'black';
|
||||
|
||||
Reference in New Issue
Block a user