This commit is contained in:
Dragon Fire
2020-07-04 23:13:20 -04:00
parent 927fefd469
commit 10e81af394
+1
View File
@@ -52,6 +52,7 @@ module.exports = class GandhiQuoteCommand extends Command {
ctx.textAlign = 'center';
ctx.textBaseline = 'top';
ctx.font = 'italic 50px Latin Modern Roman';
ctx.fillStyle = 'white';
let fontSize = 50;
while (ctx.measureText(text).width > 1485) {
fontSize--;