From c7adb9e4ccd7cf36f2097e507c5dc2e82538066e Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Mon, 5 Aug 2019 16:21:49 -0400 Subject: [PATCH] Fix --- commands/image-edit/plankton-plan.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/image-edit/plankton-plan.js b/commands/image-edit/plankton-plan.js index 51e54538..5d472666 100644 --- a/commands/image-edit/plankton-plan.js +++ b/commands/image-edit/plankton-plan.js @@ -69,11 +69,11 @@ module.exports = class PlanktonPlanCommand extends Command { ctx.font = '35px Noto'; const step = steps[i]; let fontSize = 35; - while (ctx.measureText(step).width > 520) { + while (ctx.measureText(step).width > 420) { fontSize -= 1; ctx.font = `${fontSize}px Noto`; } - const lines = await wrapText(ctx, step, 160); + const lines = await wrapText(ctx, step, 155); ctx.fillText(lines.join('\n'), x, y); i++; }