Update emoji rendering to use first character only
This commit is contained in:
parent
a6d75f62a6
commit
e7f142ecff
1 changed files with 2 additions and 2 deletions
|
|
@ -33,7 +33,7 @@ export class CreateImage {
|
||||||
const text = lines[i];
|
const text = lines[i];
|
||||||
|
|
||||||
ctx.font = "50px NotoColorEmoji Regular";
|
ctx.font = "50px NotoColorEmoji Regular";
|
||||||
ctx.fillText(emoji ?? "", 75, 930 - i * 60);
|
ctx.fillText([...emoji][0] ?? "", 75, 930 - i * 60);
|
||||||
|
|
||||||
ctx.font = "56px Pretendard Bold";
|
ctx.font = "56px Pretendard Bold";
|
||||||
ctx.fillText(text ?? "", 75 + 80, 930 - i * 60);
|
ctx.fillText(text ?? "", 75 + 80, 930 - i * 60);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue