fixed it a little
This commit is contained in:
parent
861b6bf6e3
commit
2d2e47a578
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue