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`; }