wrapText is no longer async

This commit is contained in:
Dragon Fire
2024-04-26 00:27:42 -04:00
parent fcaa13c576
commit aa78cd91c2
41 changed files with 53 additions and 53 deletions
+2 -2
View File
@@ -60,7 +60,7 @@ module.exports = class SpidermanPointingCommand extends Command {
fontSize--;
ctx.font = this.client.fonts.get('Noto-Regular.ttf').toCanvasString(fontSize);
}
const lines = await wrapText(ctx, first, 290);
const lines = wrapText(ctx, first, 290);
const topMost = 189 - (((fontSize * lines.length) / 2) + ((10 * (lines.length - 1)) / 2));
for (let i = 0; i < lines.length; i++) {
ctx.strokeStyle = 'black';
@@ -75,7 +75,7 @@ module.exports = class SpidermanPointingCommand extends Command {
fontSize--;
ctx.font = this.client.fonts.get('Noto-Regular.ttf').toCanvasString(fontSize);
}
const lines2 = await wrapText(ctx, second, 290);
const lines2 = wrapText(ctx, second, 290);
const topMost2 = 190 - (((fontSize * lines2.length) / 2) + ((10 * (lines2.length - 1)) / 2));
for (let i = 0; i < lines2.length; i++) {
ctx.strokeStyle = 'black';