From 98ed0b6ad4c18358aea13232280cfe0368118b12 Mon Sep 17 00:00:00 2001 From: Namyki Date: Mon, 8 Dec 2025 19:39:17 +0800 Subject: [PATCH] fontchange --- src/config.ts | 8 ++++---- src/styles/main.css | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/config.ts b/src/config.ts index f311a33..d1909f5 100644 --- a/src/config.ts +++ b/src/config.ts @@ -184,15 +184,15 @@ export const siteConfig: SiteConfig = { // 英文字体 - 优先级最高 // 指定为英文字体则无论字体包含多大范围,都只会保留 ASCII 字符子集 fontFamily: "ZenMaruGothic-Medium", - fontWeight: "400", + fontWeight: "500", localFonts: ["ZenMaruGothic-Medium.ttf"], enableCompress: true, // 启用字体子集优化,减少字体文件大小 }, cjkFont: { // 中日韩字体 - 作为回退字体 - fontFamily: "futomaru401", - fontWeight: "500", - localFonts: ["futomaru401.ttf"], + fontFamily: "XiangcuiDengcusong", + fontWeight: "400", + 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; }