From b4b3874b0bd0efbdad3e26e0b7961a2ad49e38c7 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Wed, 3 Jun 2020 18:49:44 -0400 Subject: [PATCH] Fix --- commands/edit-meme/phoebe-teaching-joey.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/commands/edit-meme/phoebe-teaching-joey.js b/commands/edit-meme/phoebe-teaching-joey.js index 238edb5f..b2131f50 100644 --- a/commands/edit-meme/phoebe-teaching-joey.js +++ b/commands/edit-meme/phoebe-teaching-joey.js @@ -85,12 +85,11 @@ module.exports = class PhoebeTeachingJoeyCommand extends Command { let step = steps[i]; if (step === incorrect && j === 0) step = correct.join(' '); let fontSize = 18; - while (ctx.measureText(step).width > 390) { + while (ctx.measureText(step).width > 260) { fontSize -= 1; ctx.font = `${fontSize}px Noto`; } - const lines = await wrapText(ctx, step, 260); - ctx.fillText(lines.join('\n'), x, y); + ctx.fillText(step, x, y, 260); j++; } i++;