perf: 优化字体加载性能和字间距

- 添加 adjustFontFallback: false 优化 CLS(累积布局偏移)
- 调整霞鹜文楷字间距:从负值改为正值,让手写风格字体更自然
  - h1: -0.03em → 0.01em
  - h2: -0.02em → 0.015em
  - type-display: 添加 0.01em
  - type-title: 0.02em → 0.025em
- 改善字体加载时的视觉稳定性

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-02-13 16:08:26 +08:00
parent a9bd56b658
commit 62090c7742
2 changed files with 8 additions and 6 deletions

View File

@@ -18,6 +18,7 @@ const lxgwWenKai = LXGW_WenKai_TC({
variable: '--font-serif-cn',
display: 'swap',
preload: true,
adjustFontFallback: false, // 中文字体不需要 fallback 调整,使用系统字体作为 fallback
});
export const metadata: Metadata = {