From 86c9f6c42dd34aed82a3b8dded37c38ec4e478ad Mon Sep 17 00:00:00 2001 From: QihanNX Date: Tue, 11 Aug 2026 04:27:43 +0000 Subject: [PATCH] feat: update post OG image font to Noto Serif SC --- src/pages/posts/[...slug]/index.png.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/posts/[...slug]/index.png.ts b/src/pages/posts/[...slug]/index.png.ts index fe73837..3a93106 100644 --- a/src/pages/posts/[...slug]/index.png.ts +++ b/src/pages/posts/[...slug]/index.png.ts @@ -27,7 +27,7 @@ export const GET: APIRoute = async ({ props, url }) => { return new Response(null, { status: 404, statusText: "Not found" }); } - const fonts = fontData["--font-nunito"]; + const fonts = fontData["--font-noto-serif-sc"]; const regularFontPath = getFontPathByWeight(fonts, 400); const boldFontPath = getFontPathByWeight(fonts, 700); @@ -55,7 +55,7 @@ export const GET: APIRoute = async ({ props, url }) => { display: "flex", alignItems: "center", justifyContent: "center", - fontFamily: "Nunito", + fontFamily: "Noto Serif SC", }, children: [ { @@ -174,13 +174,13 @@ export const GET: APIRoute = async ({ props, url }) => { embedFont: true, fonts: [ { - name: "Nunito", + name: "Noto Serif SC", data: regularData, weight: 400, style: "normal", }, { - name: "Nunito", + name: "Noto Serif SC", data: boldData, weight: 700, style: "normal",