This commit is contained in:
lilyissillyyy
2025-09-06 21:54:46 -04:00
parent b1d496ab55
commit d27fbecff5
+1 -1
View File
@@ -52,7 +52,7 @@ module.exports = class LisaPresentationCommand extends Command {
ctx.font = this.client.fonts.get('akbar.ttf').toCanvasString(19); ctx.font = this.client.fonts.get('akbar.ttf').toCanvasString(19);
ctx.fillStyle = 'white'; ctx.fillStyle = 'white';
const shortened = shortenText(ctx, text.toUpperCase(), 500); const shortened = shortenText(ctx, text.toUpperCase(), 500);
const len = ctx.measureText(shortened); const len = ctx.measureText(shortened).width;
const arr = []; const arr = [];
for (let i = 0; i < 12; i++) arr.push(shortened); for (let i = 0; i < 12; i++) arr.push(shortened);
fillTextWithBreaks(ctx, arr.join('\n'), 30, 27); fillTextWithBreaks(ctx, arr.join('\n'), 30, 27);