From c38c98e160245e98013538ad6d01410953ca4b70 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Sun, 14 Oct 2018 17:38:37 +0200 Subject: [PATCH] resize better --- 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 befe526..190538c 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 - 300); + } while (ctx.measureText(text).width > 700 - 300); // Return the result to use in the actual canvas return ctx.font;