Skip to content

feat: use system font stack for better CJK rendering#498

Open
fordchao wants to merge 1 commit into
nashsu:mainfrom
fordchao:font/use-system-font-stack
Open

feat: use system font stack for better CJK rendering#498
fordchao wants to merge 1 commit into
nashsu:mainfrom
fordchao:font/use-system-font-stack

Conversation

@fordchao

Copy link
Copy Markdown

Summary

Replaces the hardcoded Geist Variable font with a system default font stack to improve text rendering for Chinese/Japanese/Korean (CJK) users.

Changes

  • Remove @import "@fontsource-variable/geist" (no longer needed)
  • Replace --font-sans: 'Geist Variable', sans-serif with system font stack:
--font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Pingfang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;

Why

Geist is designed primarily for Latin characters. For CJK users (Chinese/Japanese/Korean), system fonts like Pingfang SC (macOS) and Microsoft YaHei (Windows) provide much better readability and a more native feel.

The system font stack is also slightly faster (no extra font file to download) and respects the user's OS preferences.

Testing

Tested locally on macOS (aarch64) with Chinese text — rendering is noticeably more natural.


Closes: #

Replace the Geist Variable font with system default font stack to
improve rendering for Chinese/Japanese/Korean (CJK) users.
The new font stack falls back to Pingfang SC on macOS and
Microsoft YaHei on Windows, which look more natural for CJK text.

Closes: nashsu/llm_wiki/issues (if any)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant