This commit is contained in:
Dragon Fire
2020-05-31 13:34:26 -04:00
parent 409fcc547d
commit 2212311152
+1 -1
View File
@@ -64,7 +64,7 @@ module.exports = class MemeGenModernCommand extends Command {
const lines = await wrapText(ctx, text, base.width - 10);
const lineBreakLen = text.split('\n').length;
const linesLen = (40 * lines.length) + (40 * (lineBreakLen - 1)) + (9 * lines.length) + (9 * (lineBreakLen - 1));
canvas.height += linesLen;
canvas.height += linesLen + 5;
ctx.font = '40px Noto';
ctx.textBaseline = 'top';
ctx.fillStyle = 'white';