This commit is contained in:
Dragon Fire
2020-07-04 23:14:11 -04:00
parent 986e503b1a
commit 833e97c37e
+1 -1
View File
@@ -54,7 +54,7 @@ module.exports = class GandhiQuoteCommand extends Command {
ctx.font = 'italic 50px Latin Modern Roman';
ctx.fillStyle = 'white';
let fontSize = 50;
while (ctx.measureText(text).width > 1485) {
while (ctx.measureText(quote).width > 1485) {
fontSize--;
ctx.font = `${fontSize}px Noto`;
}