diff --git a/commands/edit-meme/meme-gen-modern.js b/commands/edit-meme/meme-gen-modern.js index 790bd350..759a7178 100644 --- a/commands/edit-meme/meme-gen-modern.js +++ b/commands/edit-meme/meme-gen-modern.js @@ -63,7 +63,7 @@ module.exports = class MemeGenModernCommand extends Command { ctx.font = '40px Noto'; const lines = await wrapText(ctx, text, base.width - 10); const lineBreakLen = text.split('\n').length; - const linesLen = (40 * lines.length) + (40 * (lineBreakLen - 1)) + (9 * lines.length) + (9 * (lineBreakLen - 1)); + const linesLen = (40 * lines.length) + (40 * (lineBreakLen - 1)) + (14 * lines.length) + (14 * (lineBreakLen - 1)); canvas.height += linesLen + 5; ctx.font = '40px Noto'; ctx.textBaseline = 'top';