From 6e3af679c7c8df612f1961e2d4f9f6d688c463bf Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Wed, 17 Jun 2020 16:45:57 -0400 Subject: [PATCH] Fix --- commands/edit-image/speed-limit.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/edit-image/speed-limit.js b/commands/edit-image/speed-limit.js index 6807ba1f..c530ee06 100644 --- a/commands/edit-image/speed-limit.js +++ b/commands/edit-image/speed-limit.js @@ -52,9 +52,10 @@ module.exports = class SpeedLimitCommand extends Command { const ctx = canvas.getContext('2d'); ctx.drawImage(base, 0, 0); ctx.textBaseline = 'top'; + ctx.textAlign = 'center'; ctx.font = '360px Highway Gothic'; ctx.fillStyle = 'black'; - ctx.fillText(limit.toUpperCase(), 77, 356, 475); + ctx.fillText(limit.toUpperCase(), 303, 356, 475); return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'speed-limit.png' }] }); } };