From 386cb7ba258832d2fb05f84f84d1dcd190c5f4e5 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 20 Feb 2021 11:48:12 -0500 Subject: [PATCH] Fix --- commands/edit-image/font.js | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/edit-image/font.js b/commands/edit-image/font.js index a2d7846e..35e34e99 100644 --- a/commands/edit-image/font.js +++ b/commands/edit-image/font.js @@ -44,6 +44,7 @@ module.exports = class FontCommand extends Command { const ctx = canvas.getContext('2d'); ctx.font = this.client.fonts.get(font.filename).toCanvasString(75); ctx.textBaseline = 'top'; + ctx.textAlign = 'center'; ctx.fillStyle = 'white'; ctx.fillRect(0, 0, canvas.width, canvas.height); ctx.fillStyle = 'black';