This commit is contained in:
Dragon Fire
2020-06-27 23:59:57 -04:00
parent 2ac64479da
commit 913ef8f66d
+2 -2
View File
@@ -55,8 +55,8 @@ module.exports = class SonicSaysCommand extends Command {
const ctx = canvas.getContext('2d');
ctx.textBaseline = 'top';
ctx.drawImage(base, 0, 0);
ctx.font = '26px Noto';
let fontSize = 26;
ctx.font = '24px Noto';
let fontSize = 24;
while (ctx.measureText(text).width > 648) {
fontSize--;
ctx.font = `${fontSize}px Noto`;