From cd42c178897656501800b7a9e7bf32083c4a766c Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Thu, 4 Jun 2020 09:54:40 -0400 Subject: [PATCH] Fix --- commands/edit-meme/edd-facts-book.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/edit-meme/edd-facts-book.js b/commands/edit-meme/edd-facts-book.js index 9c47d2f4..fc0ecbc6 100644 --- a/commands/edit-meme/edd-facts-book.js +++ b/commands/edit-meme/edd-facts-book.js @@ -53,12 +53,12 @@ module.exports = class EddFactsBookCommand extends Command { ctx.rotate(15 * (Math.PI / 180)); ctx.font = '30px Noto'; let fontSize = 30; - while (ctx.measureText(fact).width > 549) { + while (ctx.measureText(fact).width > 458) { fontSize -= 1; ctx.font = `${fontSize}px Noto`; } const lines = await wrapText(ctx, fact, 183); - ctx.fillText(lines.join('\n'), 119, 316, 183); + ctx.fillText(lines.join('\n'), 119, 306, 183); ctx.rotate(-15 * (Math.PI / 180)); return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'edd-facts-book.png' }] }); }