fontchange
This commit is contained in:
@@ -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, // 启用字体子集优化,减少字体文件大小
|
||||
},
|
||||
},
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user