From 409fcc547d9bd36995833366bee8013c6143febe Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 31 May 2020 13:30:48 -0400 Subject: [PATCH] Fix --- commands/edit-meme/meme-gen-modern.js | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/edit-meme/meme-gen-modern.js b/commands/edit-meme/meme-gen-modern.js index 5bf57871..0addd366 100644 --- a/commands/edit-meme/meme-gen-modern.js +++ b/commands/edit-meme/meme-gen-modern.js @@ -65,6 +65,7 @@ module.exports = class MemeGenModernCommand extends Command { const lineBreakLen = text.split('\n').length; const linesLen = (40 * lines.length) + (40 * (lineBreakLen - 1)) + (9 * lines.length) + (9 * (lineBreakLen - 1)); canvas.height += linesLen; + ctx.font = '40px Noto'; ctx.textBaseline = 'top'; ctx.fillStyle = 'white'; ctx.fillRect(0, 0, base.width, linesLen);