fontchange

This commit is contained in:
2025-12-08 19:39:17 +08:00
parent c9c71955c0
commit 98ed0b6ad4
2 changed files with 6 additions and 6 deletions

View File

@@ -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, // 启用字体子集优化,减少字体文件大小
},
},

View File

@@ -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;
}