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