Update emoji rendering to use first character only

This commit is contained in:
암냥 2025-09-21 23:37:22 +09:00 committed by GitHub
commit e7f142ecff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);