This commit is contained in:
Dragon Fire
2024-05-03 11:07:11 -04:00
parent b105f3f19a
commit 4425053c7e
+1 -1
View File
@@ -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';