Allow a bit more width

This commit is contained in:
Dragon Fire
2020-03-11 14:38:26 -04:00
parent 626f5da8e9
commit b403b5bec8
+2 -2
View File
@@ -38,7 +38,7 @@ module.exports = class SosCommand extends Command {
key: 'message',
prompt: 'What should Esther spell out to signal for help?',
type: 'string',
max: 20
max: 10
}
]
});
@@ -56,7 +56,7 @@ module.exports = class SosCommand extends Command {
ctx.textBaseline = 'middle';
ctx.rotate(15 * (Math.PI / 180));
let fontSize = 90;
while (ctx.measureText(message).width > 130) {
while (ctx.measureText(message).width > 140) {
fontSize -= 1;
ctx.font = `${fontSize}px Noto`;
}