From a9d22f06d9b2855ed5b5f3227a53ac9ac5124a28 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 20 Feb 2021 11:46:16 -0500 Subject: [PATCH] Fix --- commands/edit-image/font.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/edit-image/font.js b/commands/edit-image/font.js index cbb7998e..dc745c40 100644 --- a/commands/edit-image/font.js +++ b/commands/edit-image/font.js @@ -39,8 +39,8 @@ module.exports = class FontCommand extends Command { const ctxPre = canvasPre.getContext('2d'); ctxPre.font = this.client.fonts.get(font.filename).toCanvasString(75); const len = ctxPre.measureText(text); - const lines = await wrapText(ctxPre, text, 450); - const canvas = createCanvas(Math.min(len.width + 50, 500), 50 + (75 * lines.length)); + const lines = await wrapText(ctxPre, text, 950); + const canvas = createCanvas(Math.min(len.width + 50, 1000), 50 + (75 * lines.length) + (5 * lines.length)); const ctx = canvas.getContext('2d'); ctx.font = this.client.fonts.get(font.filename).toCanvasString(75); ctx.textBaseline = 'top';