This commit is contained in:
2025-12-02 10:29:25 +08:00
parent 9570745a94
commit 0304804057
9 changed files with 42 additions and 2 deletions

View File

@@ -8,8 +8,48 @@
// ============ 字体声明 ============ // ============ 字体声明 ============
@font-face { @font-face {
font-family: 'Source Han Sans SC'; font-family: 'Source Han Sans SC';
src: url('/font/SourceHanSansSC-VF.ttf') format('truetype'); src: url('/font/siyuan/SOURCEHANSANSCN-EXTRALIGHT.OTF') format('opentype');
font-weight: 100 900; font-weight: 200;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Source Han Sans SC';
src: url('/font/siyuan/SOURCEHANSANSCN-LIGHT.OTF') format('opentype');
font-weight: 300;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Source Han Sans SC';
src: url('/font/siyuan/SOURCEHANSANSCN-REGULAR.OTF') format('opentype');
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Source Han Sans SC';
src: url('/font/siyuan/SOURCEHANSANSCN-MEDIUM.OTF') format('opentype');
font-weight: 500;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Source Han Sans SC';
src: url('/font/siyuan/SOURCEHANSANSCN-BOLD.OTF') format('opentype');
font-weight: 700;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Source Han Sans SC';
src: url('/font/siyuan/SOURCEHANSANSCN-HEAVY.OTF') format('opentype');
font-weight: 900;
font-style: normal; font-style: normal;
font-display: swap; font-display: swap;
} }