mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-07 06:45:31 +02:00
Fix
This commit is contained in:
@@ -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--;
|
||||
|
||||
Reference in New Issue
Block a user