From e769a9e75dd6036521882d153727de27225d2cce Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Fri, 3 May 2024 11:16:49 -0400 Subject: [PATCH] Fix --- commands/edit-image-text/font.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/edit-image-text/font.js b/commands/edit-image-text/font.js index 664441c3..a5797061 100644 --- a/commands/edit-image-text/font.js +++ b/commands/edit-image-text/font.js @@ -38,7 +38,7 @@ module.exports = class FontCommand extends Command { ctxPre.font = this.client.fonts.get(font.filename).toCanvasString(50); const len = ctxPre.measureText(text); const lines = wrapText(ctxPre, text, 950); - const height = measureTextHeightWithBreaks(ctx, text); + const height = measureTextHeightWithBreaks(ctxPre, text); const canvas = createCanvas(Math.min(len.width + 50, 1000), 50 + height); const ctx = canvas.getContext('2d'); ctx.font = this.client.fonts.get(font.filename).toCanvasString(50);