From 32152dc3e0e33cca07dc269df3a1626d220d8d08 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Fri, 8 Feb 2019 16:34:41 +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 a06842fa..3b61c877 100644 --- a/commands/image-edit/meme-gen.js +++ b/commands/image-edit/meme-gen.js @@ -52,6 +52,7 @@ module.exports = class MemeGenCommand extends Command { ctx.font = `${fontSize}px Impact`; ctx.fillStyle = 'white'; ctx.textAlign = 'center'; + ctx.textBaseline = 'top'; const topLines = await wrapText(ctx, top, base.width - 10); for (let i = 0; i < topLines.length; i++) { const textHeight = (i * fontSize) + (i * 10);