feat: 添加霞鹜文楷字体到文章主标题

- 使用 Google Fonts 的 LXGW WenKai TC 字体
- 仅应用到文章主标题 (.prose h1 和 .type-display)
- 只加载 Regular (400) 和 Bold (700) 字重以优化性能
- 添加字体子集化脚本(可选,用于本地字体文件)
- 保持系统字体作为 fallback

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-02-13 15:05:00 +08:00
parent ed63ec7d9a
commit 2229f6bb6f
3 changed files with 79 additions and 5 deletions

View File

@@ -17,7 +17,7 @@
/* Custom font families */
--font-serif-eng: var(--font-serif-eng), serif;
--font-serif-cn: "Songti SC", "Noto Serif TC", "SimSun", serif;
--font-serif-cn: var(--font-serif-cn), "Songti SC", "Noto Serif TC", "SimSun", serif;
/* Custom transition timing */
--ease-snappy: cubic-bezier(0.32, 0.72, 0, 1);
@@ -220,7 +220,7 @@ body {
color: var(--color-ink-strong);
font-weight: 700;
letter-spacing: -0.03em;
font-family: var(--font-serif-eng), "Songti SC", serif;
font-family: var(--font-serif-cn), var(--font-serif-eng), "Songti SC", serif;
}
.prose h2 {
@@ -409,7 +409,7 @@ body {
font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.5rem);
line-height: 1.2;
font-weight: var(--font-weight-semibold);
font-family: var(--font-serif-eng), "Songti SC", serif;
font-family: var(--font-serif-cn), var(--font-serif-eng), "Songti SC", serif;
}
.type-title {