mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Set textBaseline
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user