This commit is contained in:
Dragon Fire
2024-04-21 17:54:08 -04:00
parent f533addaa3
commit 5a10ec4949
+1 -1
View File
@@ -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';