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 字符子集 // 指定为英文字体则无论字体包含多大范围,都只会保留 ASCII 字符子集
fontFamily: "ZenMaruGothic-Medium", fontFamily: "ZenMaruGothic-Medium",
fontWeight: "400", fontWeight: "500",
localFonts: ["ZenMaruGothic-Medium.ttf"], localFonts: ["ZenMaruGothic-Medium.ttf"],
enableCompress: true, // 启用字体子集优化,减少字体文件大小 enableCompress: true, // 启用字体子集优化,减少字体文件大小
}, },
cjkFont: { cjkFont: {
// 中日韩字体 - 作为回退字体 // 中日韩字体 - 作为回退字体
fontFamily: "futomaru401", fontFamily: "XiangcuiDengcusong",
fontWeight: "500", fontWeight: "400",
localFonts: ["futomaru401.ttf"], localFonts: ["XiangcuiDengcusong.ttf"],
enableCompress: true, // 启用字体子集优化,减少字体文件大小 enableCompress: true, // 启用字体子集优化,减少字体文件大小
}, },
}, },

View File

@@ -18,8 +18,8 @@
} }
@font-face { @font-face {
font-family: 'futomaru401'; font-family: 'XiangcuiDengcusong';
src: url('/assets/font/futomaru401.woff2') format('woff2'); src: url('/assets/font/XiangcuiDengcusong.woff2') format('woff2');
font-weight: 400; font-weight: 400;
font-display: swap; font-display: swap;
} }