From abaeee894ddaea2e47fdbf2c92aa63f124cca7b1 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Wed, 10 Jun 2020 23:55:22 -0400 Subject: [PATCH] Add more spacing to subtitle --- commands/edit-image/subtitle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/edit-image/subtitle.js b/commands/edit-image/subtitle.js index 9fafca3c..20bac8c1 100644 --- a/commands/edit-image/subtitle.js +++ b/commands/edit-image/subtitle.js @@ -59,7 +59,7 @@ module.exports = class SubtitleCommand extends Command { const lines = await wrapText(ctx, text, base.width - 10); if (!lines) return msg.reply('There\'s not enough width to subtitle this image.'); ctx.textBaseline = 'bottom'; - const initial = base.height - ((lines.length - 1) * fontSize) - ((lines.length - 1) * 10); + const initial = base.height - ((lines.length - 1) * fontSize) - (fontSize / 2) - ((lines.length - 1) * 10); for (let i = 0; i < lines.length; i++) { const textHeight = initial + (i * fontSize) + (i * 10); ctx.strokeStyle = 'black';