From 765c9879f53e231efd91ac6447190f2a6964ac93 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 20 Feb 2021 11:37:11 -0500 Subject: [PATCH] Test --- commands/edit-image/font.js | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/edit-image/font.js b/commands/edit-image/font.js index 0bc78d01..37a214e3 100644 --- a/commands/edit-image/font.js +++ b/commands/edit-image/font.js @@ -40,6 +40,7 @@ module.exports = class FontCommand extends Command { ctxPre.font = this.client.fonts.get(font.filename).toCanvasString(75); const len = ctxPre.measureText(text); const lines = await wrapText(ctxPre, text, 450); + console.log(lines); const canvas = createCanvas(Math.min(len + 50, 500), 50 + (75 * lines.length)); const ctx = canvas.getContext('2d'); ctx.font = this.client.fonts.get(font.filename).toCanvasString(75);