|
52 | 52 |
|
53 | 53 |
|
54 | 54 | /* ─── 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. */ |
60 | 62 |
|
61 | 63 | 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; |
64 | 66 | --font-sans: "Source Han Sans SC", "Noto Sans CJK SC", ui-sans-serif, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; |
65 | 67 | } |
66 | 68 |
|
|
0 commit comments