From e7f142ecffe0ae8c7d4a0a1ba3e0e8bde4ef8b96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=95=94=EB=83=A5=20=28imnyang=29?= Date: Sun, 21 Sep 2025 23:37:22 +0900 Subject: [PATCH] Update emoji rendering to use first character only --- app/lib/image.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/lib/image.ts b/app/lib/image.ts index 0793962..dee576a 100644 --- a/app/lib/image.ts +++ b/app/lib/image.ts @@ -33,7 +33,7 @@ export class CreateImage { const text = lines[i]; 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.fillText(text ?? "", 75 + 80, 930 - i * 60); @@ -176,4 +176,4 @@ export class CreateImage { console.error("Error saving story info image:", error); } } -} \ No newline at end of file +}