From 713023f24b122a4397403ba0ef439d66914bd602 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 20 Feb 2021 11:49:26 -0500 Subject: [PATCH] Fix --- commands/edit-image/font.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/edit-image/font.js b/commands/edit-image/font.js index 48c17c24..9d66d933 100644 --- a/commands/edit-image/font.js +++ b/commands/edit-image/font.js @@ -40,7 +40,7 @@ module.exports = class FontCommand extends Command { ctxPre.font = this.client.fonts.get(font.filename).toCanvasString(50); const len = ctxPre.measureText(text); const lines = await wrapText(ctxPre, text, 950); - const canvas = createCanvas(Math.min(len.width + 50, 1000), 50 + (50 * lines.length) + (10 * lines.length)); + const canvas = createCanvas(Math.min(len.width + 50, 1000), 50 + (50 * lines.length) + (15 * lines.length)); const ctx = canvas.getContext('2d'); ctx.font = this.client.fonts.get(font.filename).toCanvasString(50); ctx.textBaseline = 'top';