Set textBaseline

This commit is contained in:
Dragon Fire
2020-04-23 22:12:44 -04:00
parent ecca350ff0
commit 30ba34d804
+1
View File
@@ -61,6 +61,7 @@ module.exports = class ZeroDialogueCommand extends Command {
ctx.drawImage(base, 0, 0);
ctx.font = '42px MM Zero';
ctx.fillStyle = 'white';
ctx.textBaseline = 'top';
let text = await wrapText(ctx, quote, 425);
text = text.length > 2 ? `${text.slice(2).join('\n')}...` : text.join('\n');
ctx.fillText(text, 8, 8);