From 30ba34d8046a7de05313a93260a72c565c822864 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Thu, 23 Apr 2020 22:12:44 -0400 Subject: [PATCH] Set textBaseline --- commands/edit-image/zero-dialogue.js | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/edit-image/zero-dialogue.js b/commands/edit-image/zero-dialogue.js index edef0724..16d07501 100644 --- a/commands/edit-image/zero-dialogue.js +++ b/commands/edit-image/zero-dialogue.js @@ -61,6 +61,7 @@ module.exports = class ZeroDialogueCommand extends Command { ctx.drawImage(base, 0, 0); ctx.font = '42px MM Zero'; ctx.fillStyle = 'white'; + ctx.textBaseline = 'top'; let text = await wrapText(ctx, quote, 425); text = text.length > 2 ? `${text.slice(2).join('\n')}...` : text.join('\n'); ctx.fillText(text, 8, 8);