From e99799aa3072bcee1528d71fef722dc197e4d67a Mon Sep 17 00:00:00 2001 From: the3ash <24548223+the3ash@users.noreply.github.com> Date: Thu, 21 Aug 2025 11:14:46 +0800 Subject: [PATCH] feat(og): update font to support CJK --- src/pages/open-graph/[...route].ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/open-graph/[...route].ts b/src/pages/open-graph/[...route].ts index 9075f2c..715d9fe 100644 --- a/src/pages/open-graph/[...route].ts +++ b/src/pages/open-graph/[...route].ts @@ -32,18 +32,18 @@ export const { getStaticPaths, GET } = OGImageRoute({ color: [28, 28, 28], size: 68, weight: 'SemiBold', - families: ['Inter'] + families: ['PingFang SC'] }, description: { color: [180, 180, 180], size: 40, weight: 'Medium', - families: ['Inter'] + families: ['PingFang SC'] } }, fonts: [ - 'https://cdn.jsdelivr.net/fontsource/fonts/inter@latest/latin-600-normal.ttf', - 'https://cdn.jsdelivr.net/fontsource/fonts/inter@latest/latin-500-normal.ttf' + 'https://cdn.jsdelivr.net/npm/font-pingfang-sc-font-weight-improved@latest/PingFangSC-Medium.woff2', + 'https://cdn.jsdelivr.net/npm/font-pingfang-sc-font-weight-improved@latest/PingFangSC-Semibold.woff2', ] }) }) -- 2.51.2