From 833e97c37e1069a05b87e80057c3019782150e22 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 4 Jul 2020 23:14:11 -0400 Subject: [PATCH] Fix --- commands/edit-image/gandhi-quote.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/edit-image/gandhi-quote.js b/commands/edit-image/gandhi-quote.js index cb95a16d..441527b6 100644 --- a/commands/edit-image/gandhi-quote.js +++ b/commands/edit-image/gandhi-quote.js @@ -54,7 +54,7 @@ module.exports = class GandhiQuoteCommand extends Command { ctx.font = 'italic 50px Latin Modern Roman'; ctx.fillStyle = 'white'; let fontSize = 50; - while (ctx.measureText(text).width > 1485) { + while (ctx.measureText(quote).width > 1485) { fontSize--; ctx.font = `${fontSize}px Noto`; }