This commit is contained in:
Dragon Fire
2020-06-04 09:49:56 -04:00
parent 1f01a643de
commit 3ec27854c5
+1 -1
View File
@@ -53,7 +53,7 @@ module.exports = class EddFactsBookCommand extends Command {
ctx.rotate(-15 * (Math.PI / 180));
ctx.font = '30px Noto';
let fontSize = 30;
while (ctx.measureText(first).width > 549) {
while (ctx.measureText(fact).width > 549) {
fontSize -= 1;
ctx.font = `${fontSize}px Noto`;
}