mirror of https://github.com/vuejs/vitepress
The Inter Core faces (previously Inter4CJK) leave East Asian ambiguous punctuation and symbols uncovered so that the document's CJK font can render them, but the next family in the stack was a Latin system font, which claimed most of those characters before the language-aware system fallback could pick the right CJK font - and characters it lacked could land in an unrelated one (like Apple SD Gothic Neo on Chinese pages in Chrome on macOS). The zh/ja/ko stacks now name the platform defaults explicitly (PingFang SC / Microsoft YaHei / Noto Sans CJK SC, Hiragino Sans / Meiryo / Yu Gothic / Noto Sans CJK JP, Apple SD Gothic Neo / Malgun Gothic / Noto Sans CJK KR), so per-glyph matching lands there deterministically, and sites can splice a CJK webfont between 'Inter Core' and the system families. Traditional Chinese currently shares the zh (Hans) rule; the TC variant is documented in the script. BREAKING CHANGE: the Inter4CJK font family has been renamed to 'Inter Core'. Custom --vp-font-family-base overrides referencing Inter4CJK must be updated. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>pull/5335/head
parent
fa24c6d67b
commit
91b06b67a3
Loading…
Reference in new issue