When working on web design and front-end layouts, selecting typography is often the first critical step determining overall visual polish and reading comfort.
For users of Traditional Chinese, the early default Windows system font, "**PMingLiU**", left an indelible mark on many memories. Before high-DPI displays and modern subpixel antialiasing became standard, flimsy stroke rendering, uneven visual weight, and rough aliasing made screen reading strenuous.
How can you ensure web typography displays crisp, comfortable, and elegant Chinese characters across different operating systems—whether on Windows PCs, Apple Macs, or mobile devices? Mastering CSS font-family syntax and cross-platform font mapping is a fundamental skill for every web designer and front-end developer.
CSS font-family Syntax and Core Best Practices
In CSS, we define the fallback sequence of display fonts using the font-family property. When a browser renders text, it searches through the list from left to right to check whether the font is installed on the user’s system. Once the first compatible match is found, it renders text using that font.
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang TC", "Microsoft JhengHei", sans-serif;
}
1. The Golden Rule: Western Fonts First, Chinese Fonts Second
When configuring font-family, always adhere to the principle: Western fonts first, Chinese fonts second.
The reasons are straightforward:
- Western fonts (such as Helvetica, Arial, or Roboto) usually only contain ASCII characters and Latin glyphs, with no Chinese Hanzi character definitions.
- Most Chinese fonts (such as Microsoft JhengHei or PMingLiU) include both Chinese and alphanumeric characters. However, their bundled Latin glyphs often lack balanced kerning, proportional elegance, and aesthetic refinement compared to dedicated Western typefaces.
- By placing Western fonts ahead in the stack, the browser prioritizes polished Western typography for English words and numbers. When encountering Chinese characters missing from the Western font, the browser naturally “falls back” to the subsequent Chinese font. This achieves ideal rendering for both scripts seamlessly.
2. Wrap Spaces and Chinese Names in Quotes
Whenever a font name contains spaces (such as Microsoft JhengHei or PingFang TC) or uses Chinese characters directly (such as "微軟正黑體"), it must be enclosed within double "" or single '' quotation marks. If the font name consists of a single continuous Latin word (like Arial or sans-serif), quotes can be omitted.
3. Prefer Official English PostScript Names
While modern browsers generally recognize localized Chinese font names, older operating systems, non-Chinese locale environments, or CSS preprocessors may fail to parse native characters due to encoding mismatches (such as UTF-8 vs. Big5).
Therefore, we strongly recommend using the official English PostScript / font family name. For instance, specifying "Microsoft JhengHei" provides significantly higher cross-platform reliability and fault tolerance than writing "微軟正黑體".
Generic Font Families
At the end of every font-family declaration, always append a generic font family keyword as the final safeguard. If none of the specified fonts exist on the client’s machine, the browser falls back to the system default within that category:
| Generic Family | Chinese Classification | Characteristics & Visual Style | Common Examples |
|---|---|---|---|
sans-serif | Sans-serif / Gothic (無襯線字) | Uniform stroke width, no serifs, modern, clean, ideal for screens | Hei, PingFang, Microsoft JhengHei, Helvetica |
serif | Serif / Song & Ming (襯線字) | Strokes feature decorative end flourishes (serifs), classical, literary | Ming, Song, Times New Roman, Georgia |
monospace | Monospaced (等寬字) | Equal horizontal width per glyph, structured alignment, ideal for code | Consolas, Monaco, Courier New |
cursive | Cursive / Script (草書/手寫字) | Flowing, brush, or handwritten stroke aesthetic | Comic Sans MS, Brush Script |
fantasy | Decorative / Display (裝飾字) | Stylized, artistic character shapes, primarily used for display headlines | Impact, Papyrus |
Built-In Chinese Font Reference for Major Operating Systems
Pre-installed Chinese fonts differ significantly across operating systems. Below is a bilingual comparison table of common Chinese fonts on macOS (Apple) and Windows (Microsoft) to guide precise CSS authoring:
1. Common Chinese Fonts on macOS / iOS
Apple operating systems are renowned for outstanding typography rendering, packing built-in high-quality Hei (Gothic), Song/Ming, and Kai (Script) typefaces:
| Traditional Name | English Name (PostScript / Family) | Type | Notes |
|---|---|---|---|
| 蘋方-繁 | PingFang TC | Sans-serif (Hei) | Primary default Traditional Chinese sans-serif on modern macOS / iOS |
| 黑體-繁 | Heiti TC | Sans-serif (Hei) | Legacy default Traditional Chinese sans-serif in OS X |
| 華文細黑 | STHeiti Light (or STXihei) | Sans-serif (Hei) | Delicate stroke weights, suitable for subheadings and blockquotes |
| 華文黑體 | STHeiti | Sans-serif (Hei) | Standard weight sans-serif |
| 華文楷體 | STKaiti | Regular Script (Kai) | Standard brush script framework |
| 華文宋體 | STSong | Serif (Song) | Classic Song/Ming serif structure |
| 華文仿宋 | STFangsong | Imitation Song (Fangsong) | Slender, upright, calligraphic strokes |
| 儷黑 Pro | LiHei Pro Medium | Sans-serif (Hei) | Classic legacy Mac Traditional Chinese sans-serif |
| 儷宋 Pro | LiSong Pro Light | Serif (Song) | Restrained, elegant print-style serif |
| 蘋果儷中黑 | Apple LiGothic Medium | Sans-serif (Hei) | Classic Apple LiGothic |
| 蘋果儷細宋 | Apple LiSung Light | Serif (Song) | Classic Apple LiSung |
| 標楷體 | BiauKai | Regular Script (Kai) | Standard official document Kai script in Taiwan Province |
2. Common Chinese Fonts on Windows
Beginning with Windows Vista and Windows 7, Microsoft upgraded its default Traditional Chinese font to Microsoft JhengHei, substantially improving long-standing on-screen readability problems:
| Traditional Name | English Name (PostScript / Family) | Type | Notes |
|---|---|---|---|
| 微軟正黑體 | Microsoft JhengHei | Sans-serif (Hei) | Dominant default Traditional Chinese sans-serif since Windows Vista |
| 新細明體 | PMingLiU | Serif (Ming) | Proportional Ming serif with kerned Western alphanumeric glyphs |
| 細明體 | MingLiU | Serif (Ming) | Monospaced Ming serif, common in legacy administrative systems |
| 標楷體 | DFKai-SB | Regular Script (Kai) | Standard official document font in Taiwan Province |
| 微軟雅黑 | Microsoft YaHei | Sans-serif (Hei) | Default Simplified Chinese sans-serif in Windows |
| 中易黑體 | SimHei | Sans-serif (Hei) | Classic Simplified Chinese sans-serif in Windows |
| 中易宋體 | SimSun | Serif (Song) | Default Simplified Chinese serif in Windows |
| 新宋體 | NSimSun | Serif (Song) | Monospaced Simplified Chinese serif |
| 仿宋 | FangSong (or FangSong_GB2312) | Imitation Song | Simplified Chinese Fangsong |
| 楷體 | KaiTi (or KaiTi_GB2312) | Regular Script (Kai) | Simplified Chinese Kai |
Practical Cross-Platform Font Stack Templates
In production, you do not need to pack every single typeface into your styles. Instead, structure your stacks using a tiered layout: “system native, Western typography first, mainstream cross-platform Traditional Chinese, safe fallbacks”.
1. Modern Clean Sans-Serif (Recommended for Body and UI)
This setup invokes modern system native typefaces first: rendering crisp "**PingFang**" on Mac, matching smoothly with "**Microsoft JhengHei**" on Windows, and delivering refined Latin styling via Helvetica and Arial:
/* Universal Cross-Platform Traditional Chinese Sans-Serif Stack */
.font-sans-tw {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang TC", "Microsoft JhengHei", "Heiti TC", "LiHei Pro", sans-serif;
}
2. Literary & Editorial Serif (Ideal for Essays, Literary Journals, and Longform Reading)
When aiming for the tactile dignity and cultural warmth of printed literature, a well-balanced serif stack shines:
/* Universal Cross-Platform Traditional Chinese Serif Stack */
.font-serif-tw {
font-family: Georgia, "Times New Roman", "Songti TC", "STSong", "LiSong Pro", "PMingLiU", serif;
}
3. Monospace Typography for Code Blocks and Data Tables
For code snippets or financial tables requiring precise vertical column alignment, monospaced fonts prevent awkward character drift:
/* Universal Cross-Platform Monospace Stack */
.font-mono-tw {
font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Courier New", monospace;
}
Conclusion
Choosing the right Chinese typography not only says goodbye to the fragmented, dated feel of legacy PMingLiU, but also establishes a clean, professional, and visually engaging baseline for your website. In today’s rich ecosystem of cross-platform devices, using English font family names, adhering to the “Western first, Chinese second” rule, and configuring well-planned font stacks guarantees readers an optimal reading experience on every screen.
Support Independent Perspectives & In-Depth Insights
Every thoughtful analysis and candid critique comes from our dedication to truth and quality. We choose not to follow sensational algorithms or clickbait headlines.
Sustaining independent research requires reader support. Make a one-time or monthly contribution, securely processed by Google.
Payments secured by Google · Manage or cancel anytime in your Google Account




Comments