From 6c91e170465e5cfc60c49ad60625fc1179999721 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Fri, 8 Feb 2019 16:36:57 +0000 Subject: [PATCH] Fix --- commands/image-edit/meme-gen.js | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/image-edit/meme-gen.js b/commands/image-edit/meme-gen.js index 3b61c877..1fcd5996 100644 --- a/commands/image-edit/meme-gen.js +++ b/commands/image-edit/meme-gen.js @@ -59,6 +59,7 @@ module.exports = class MemeGenCommand extends Command { ctx.fillText(topLines[i], base.width / 2, textHeight); } const bottomLines = await wrapText(ctx, bottom, base.width - 10); + ctx.textBaseline = 'bottom'; for (let i = 0; i < bottomLines.length; i++) { const textHeight = base.height - (i * fontSize) - (i * 10); ctx.fillText(bottomLines[i], base.width / 2, textHeight);