From 3ec27854c5b160e76a8a7539add8fc48fa9534e1 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Thu, 4 Jun 2020 09:49:56 -0400 Subject: [PATCH] Fix --- commands/edit-meme/edd-facts-book.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/edit-meme/edd-facts-book.js b/commands/edit-meme/edd-facts-book.js index 9d5f2fa7..9a4ee1f7 100644 --- a/commands/edit-meme/edd-facts-book.js +++ b/commands/edit-meme/edd-facts-book.js @@ -53,7 +53,7 @@ module.exports = class EddFactsBookCommand extends Command { ctx.rotate(-15 * (Math.PI / 180)); ctx.font = '30px Noto'; let fontSize = 30; - while (ctx.measureText(first).width > 549) { + while (ctx.measureText(fact).width > 549) { fontSize -= 1; ctx.font = `${fontSize}px Noto`; }