From 2d2e47a578c32ed2731e4cbabc2963e5e34badb9 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Sun, 14 Oct 2018 15:45:01 +0200 Subject: [PATCH] fixed it a little --- commands/fun/idubbbz.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/fun/idubbbz.js b/commands/fun/idubbbz.js index b4ffadba..befe5262 100644 --- a/commands/fun/idubbbz.js +++ b/commands/fun/idubbbz.js @@ -41,7 +41,7 @@ module.exports = class idubbbzCommand extends Command { do { // Assign the font to the context and decrement it so it can be measured again ctx.font = `${fontSize -= 10}px sans-serif`; - } while (ctx.measureText(text).width > 950 - canvas.height); + } while (ctx.measureText(text).width > 950 - 300); // Return the result to use in the actual canvas return ctx.font;