This commit is contained in:
Dragon Fire
2024-05-03 11:00:28 -04:00
parent 50cb56bf1b
commit 4554be2def
2 changed files with 4 additions and 4 deletions
+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 + 15;
const linesLen = metrics + 10;
canvas.height += linesLen;
let imageHeight = 0;
ctx.fillStyle = 'black';