font-change

This commit is contained in:
2025-12-08 19:30:02 +08:00
parent ced2361985
commit 52dbab5fa7
2 changed files with 4 additions and 4 deletions

View File

@@ -190,9 +190,9 @@ export const siteConfig: SiteConfig = {
},
cjkFont: {
// 中日韩字体 - 作为回退字体
fontFamily: "futomaru401",
fontFamily: "XiangcuiDengcusong",
fontWeight: "500",
localFonts: ["futomaru401.ttf"],
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;
}