From 52dbab5fa78967d7dcbb87bda15ffb91215059c5 Mon Sep 17 00:00:00 2001 From: Namyki Date: Mon, 8 Dec 2025 19:30:02 +0800 Subject: [PATCH] font-change --- src/config.ts | 4 ++-- src/styles/main.css | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/config.ts b/src/config.ts index f311a33..3421b26 100644 --- a/src/config.ts +++ b/src/config.ts @@ -190,9 +190,9 @@ export const siteConfig: SiteConfig = { }, cjkFont: { // 中日韩字体 - 作为回退字体 - fontFamily: "futomaru401", + fontFamily: "XiangcuiDengcusong", fontWeight: "500", - localFonts: ["futomaru401.ttf"], + localFonts: ["XiangcuiDengcusong.ttf"], enableCompress: true, // 启用字体子集优化,减少字体文件大小 }, }, diff --git a/src/styles/main.css b/src/styles/main.css index ba1234f..51c3860 100644 --- a/src/styles/main.css +++ b/src/styles/main.css @@ -18,8 +18,8 @@ } @font-face { - font-family: 'futomaru401'; - src: url('/assets/font/futomaru401.woff2') format('woff2'); + font-family: 'XiangcuiDengcusong'; + src: url('/assets/font/XiangcuiDengcusong.woff2') format('woff2'); font-weight: 400; font-display: swap; }