From f5881216bef486289844eff6467d4ea36234ee1a Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Mon, 4 May 2020 14:52:47 -0400 Subject: [PATCH] Fix --- commands/edit-meme/skyrim-skill.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/edit-meme/skyrim-skill.js b/commands/edit-meme/skyrim-skill.js index 00440653..68bbef94 100644 --- a/commands/edit-meme/skyrim-skill.js +++ b/commands/edit-meme/skyrim-skill.js @@ -62,7 +62,7 @@ module.exports = class SkyrimSkillCommand extends Command { ctx.drawImage(plate, 0, height + 1); ctx.font = '77px Futura'; let fontSize = 77; - while (ctx.measureText(text).width > 310) { + while (ctx.measureText(skill).width > 310) { fontSize -= 1; ctx.font = `${fontSize}px Futura`; }