Skip to content

Commit be67151

Browse files
committed
Change the English font-family for Chinese interface
1 parent d39ea77 commit be67151

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

src/styles/zh.css

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,17 @@
5252

5353

5454
/* ─── 2. Font stack overrides ──────────────────────────────────── */
55-
/* On ZH pages, replace the three font-family tokens so CJK glyphs
56-
render in Source Han, while Latin glyphs (e.g., the "TRACE STUDIO"
57-
wordmark) continue to render in CMU Serif / system fonts via per-
58-
character font fallback. CMU Serif is kept in the display-serif
59-
stack so the English hero title stays in its designed typeface. */
55+
/* On ZH pages:
56+
- Latin glyphs render in CMU Serif (matching the EN version) —
57+
achieved by placing CMU Serif FIRST in the serif stacks. CMU has
58+
no CJK glyphs, so browsers cleanly fall through to Source Han
59+
Serif for Chinese characters via per-character font fallback.
60+
- Chinese glyphs render in Source Han Serif / Sans.
61+
- Sans stack is unchanged for CJK; system sans handles Latin there. */
6062

6163
html[lang="zh"] {
62-
--font-serif: "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", "SimSun", serif;
63-
--font-display-serif: "Source Han Serif SC", "Noto Serif CJK SC", "CMU Serif", "Songti SC", "SimSun", serif;
64+
--font-serif: "CMU Serif", "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", "SimSun", serif;
65+
--font-display-serif: "CMU Serif", "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", "SimSun", serif;
6466
--font-sans: "Source Han Sans SC", "Noto Sans CJK SC", ui-sans-serif, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
6567
}
6668

0 commit comments

Comments
 (0)