This commit is contained in:
Daniel Odendahl Jr
2019-02-08 16:34:41 +00:00
parent 60b6cbea71
commit 32152dc3e0
+1
View File
@@ -52,6 +52,7 @@ module.exports = class MemeGenCommand extends Command {
ctx.font = `${fontSize}px Impact`;
ctx.fillStyle = 'white';
ctx.textAlign = 'center';
ctx.textBaseline = 'top';
const topLines = await wrapText(ctx, top, base.width - 10);
for (let i = 0; i < topLines.length; i++) {
const textHeight = (i * fontSize) + (i * 10);