font-change2
This commit is contained in:
@@ -190,9 +190,9 @@ export const siteConfig: SiteConfig = {
|
|||||||
},
|
},
|
||||||
cjkFont: {
|
cjkFont: {
|
||||||
// 中日韩字体 - 作为回退字体
|
// 中日韩字体 - 作为回退字体
|
||||||
fontFamily: "XiangcuiDengcusong",
|
fontFamily: "futomaru401",
|
||||||
fontWeight: "500",
|
fontWeight: "500",
|
||||||
localFonts: ["XiangcuiDengcusong.ttf"],
|
localFonts: ["futomaru401.ttf"],
|
||||||
enableCompress: true, // 启用字体子集优化,减少字体文件大小
|
enableCompress: true, // 启用字体子集优化,减少字体文件大小
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -18,8 +18,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'XiangcuiDengcusong';
|
font-family: 'futomaru401';
|
||||||
src: url('/assets/font/XiangcuiDengcusong.woff2') format('woff2');
|
src: url('/assets/font/futomaru401.woff2') format('woff2');
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user