From ad28f8b22b9927913b1bb0d7737e746a3678d9c8 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Mon, 17 Sep 2018 17:15:16 +0000 Subject: [PATCH] Fix --- commands/image-edit/gru-plan.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/image-edit/gru-plan.js b/commands/image-edit/gru-plan.js index 180ec756..107ba34d 100644 --- a/commands/image-edit/gru-plan.js +++ b/commands/image-edit/gru-plan.js @@ -56,10 +56,10 @@ module.exports = class GruPlanCommand extends Command { ctx.textBaseline = 'top'; let i = 0; for (const [x, y] of coord) { - ctx.font = '50px Noto'; + ctx.font = '40px Noto'; const step = steps[i]; - let fontSize = 50; - while (ctx.measureText(step).width > 1237) { + let fontSize = 40; + while (ctx.measureText(step).width > 1100) { fontSize -= 1; ctx.font = `${fontSize}px Noto`; }