diff --git a/src/pages/posts/[...slug]/index.png.ts b/src/pages/posts/[...slug]/index.png.ts index 31187d7..fe73837 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-google-sans-code"]; + const fonts = fontData["--font-nunito"]; const regularFontPath = getFontPathByWeight(fonts, 400); const boldFontPath = getFontPathByWeight(fonts, 700); @@ -55,6 +55,7 @@ export const GET: APIRoute = async ({ props, url }) => { display: "flex", alignItems: "center", justifyContent: "center", + fontFamily: "Nunito", }, children: [ { @@ -173,13 +174,13 @@ export const GET: APIRoute = async ({ props, url }) => { embedFont: true, fonts: [ { - name: "Google Sans Code", + name: "Nunito", data: regularData, weight: 400, style: "normal", }, { - name: "Google Sans Code", + name: "Nunito", data: boldData, weight: 700, style: "normal",