From 9d2633955b927465563f259df7154ecb02853ce4 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Thu, 13 May 2021 17:46:23 -0400 Subject: [PATCH] Fix --- commands/edit-meme/whiteboard.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/edit-meme/whiteboard.js b/commands/edit-meme/whiteboard.js index 8690fabe..f81bdfa8 100644 --- a/commands/edit-meme/whiteboard.js +++ b/commands/edit-meme/whiteboard.js @@ -56,7 +56,7 @@ module.exports = class WhiteboardCommand extends Command { ctx.textBaseline = 'top'; ctx.font = this.client.fonts.get('Noto-Regular.ttf').toCanvasString(46); let fontSize = 46; - while (ctx.measureText(nah).width > 608) { + while (ctx.measureText(initial).width > 608) { fontSize--; ctx.font = this.client.fonts.get('Noto-Regular.ttf').toCanvasString(fontSize); } @@ -68,7 +68,7 @@ module.exports = class WhiteboardCommand extends Command { } ctx.font = this.client.fonts.get('Noto-Regular.ttf').toCanvasString(40); fontSize = 40; - while (ctx.measureText(yeah).width > 551) { + while (ctx.measureText(resolved).width > 551) { fontSize--; ctx.font = this.client.fonts.get('Noto-Regular.ttf').toCanvasString(fontSize); }