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' }] }); }