Update, October 13, 2026: I turned six of the reusable rules from this post into a skill for your agent. See Chinese Web Typography.
npx skills add Skywt2003/chinese-web-typography --skill chinese-web-typography
Every so often I browse Apple's website. Apple sets many of the conventions we use in human-computer interaction, and there's a lot to learn from how its website is built. Here are some of the typography details I've collected, including a few more I stumbled across while reading the source. 😂
A Custom Chinese Web Font
Apple introduced its SF family of Latin fonts in 2015, including the widely used SF Pro, alongside the PingFang family for Chinese. On Apple's Simplified Chinese website, though, the first font in the stack is SF Pro SC.
.typography-label:lang(zh-CN) {
font-family: SF Pro SC,SF Pro Display,SF Pro Icons,PingFang SC,Helvetica Neue,Helvetica,Arial,sans-serif
}
SF Pro SC loads as a web font. It's a curious choice at first. Here's an Apple font that doesn't ship with iOS or macOS and has no public documentation I could find.
It's a private font that Apple customized for the Simplified Chinese web. The font file contains Chinese glyphs and some punctuation. The glyphs match PingFang SC with a few adjustments. The stack falls back to SF Pro Display for Latin text, so under normal loading conditions the browser uses SF Pro SC for Chinese characters and full-width punctuation and SF Pro Display for Latin text.
Think of SF Pro SC as a Simplified Chinese font tuned to sit alongside SF Pro. Here are three font stacks side by side:
Compared with PingFang SC, SF Pro SC makes two main adjustments: smaller Chinese glyphs and narrower full-width punctuation. Why?
Smaller Chinese Glyphs
Look at the second line of the comparison, which pairs SF Pro Display with PingFang SC. The Chinese glyphs appear larger. In particular, "买" just to the left of “Mac” is noticeably taller than the M. Chinese and Latin typefaces use their allotted space differently. When designed independently, their visual sizes can diverge, even when you set them at the same size.
SF Pro SC scales down the Chinese glyphs from PingFang SC to make the two scripts look more balanced together.
Source Han Serif, also known as Noto Serif SC and used on my site, skywt.cn, does something similar. Its Latin glyphs come from the Source Serif family, but they're enlarged to look more consistent next to Chinese. The comparison below uses the mixed-script phrase “换成 iPhone 怎么样” at a baseline of 64 px:
- The first line uses Source Han Serif throughout. The two scripts look the most balanced here.
- The third line switches the Latin text to Source Serif 4. The English looks noticeably smaller, even though all the text is still set at 64 px.
- To close that visual gap, you can enlarge “iPhone” to about 77 px, as shown in the second line. Now “iPhone” looks a little too heavy. Source Serif 4 offers continuous weight and optical-size axes, and it takes some tuning to get close to the first line.
Both fonts make mixed Chinese and Latin text more balanced. SF Pro SC shrinks the Chinese glyphs, while Source Han Serif enlarges the Latin ones.
Narrower Full-Width Punctuation
On Apple's Simplified Chinese site, the punctuation looks half-width. The source shows that Apple still uses full-width characters. The narrower metrics come from the font itself. In SF Pro SC, full-width punctuation is about 0.5 to 0.6 times the width of a Chinese character.
I think the main reason is to keep slogans with punctuation easy to read. Apple uses a lot of them, including “在 Apple 购买 Mac,好处多多。” At headline sizes, an unadjusted full-width comma would open up a distracting gap between “购买 Mac” and “好处多多。” Adjusting the font gives Apple the spacing it wants while retaining standard punctuation characters.
For a closer look at the font, see What is SF Pro SC?.
Controlling Line Breaks
Avoiding Widows
A widow here is a single character that wraps onto the last line of a paragraph, leaving the block looking unbalanced. Avoiding widows is a familiar rule in traditional magazine typography. Apple's site wraps the last word or phrase of a paragraph in a span that prevents wrapping.
Take this passage from the Environment page. In translation:
我们已空前接近 Apple 2030 目标,这是我们基于科学制定的宏伟蓝图,立志在全球实现碳足迹净零排放。以 2015 年为基准,我们致力于将自己的温室气体排放量减少 75%,再优先采用以自然为本且符合严格国际标准的解决方案,来抵消剩余的碳排放。
Here's the original HTML. The ending, “碳排放。”, is protected so that “放。” can't end up alone on the last line.
<p ...>
我们已空前接近 Apple 2030 目标,这是我们基于科学制定的宏伟蓝图,
<br class="large">
立志在全球实现碳足迹净零排放。以 2015 年为基准,
<span class="underline">我们致力于将自己的温室气体排放量减少 75%</span>
,再优先采用以自然为本且符合严格国际标准的解决方案,来抵消剩余的
<span class="nowrap">碳排放。</span>
</p>
Keeping Words Together Across Line Breaks
Here's an example from the Education page. In translation:
要创造一个更加公正平等的世界,教育至关重要。为此,我们携手众多合作伙伴,与 100 多个国家及地区的求学者建立联系,为教育工作者们提供支持,创造各种校外学习机会,并推动种族平等与公正。当教育的大门能开得更大,每个人就能有更多途径来发挥自身潜能。
Here's the original HTML. Apart from the final “自身潜能。”, which follows the widow rule, why do you think the page protects “伙伴”, “教育”, “创造”, “每个人”, and “发挥”?
<p ...>
要创造一个更加公正平等的世界
<span class="s-p">,</span>
<br class="small">
教育至关重要。为此,我们携手众多合作
<span class="nowrap">伙伴,</span>
与 100 多个国家及地区的求学者建立联系,为
<span class="nowrap">教育</span>
工作者们提供支持
<span class="l-p m-rp-s-p">,</span>
<br class="large">
<span class="nowrap">创造</span>
各种校外学习机会,并推动种族平等与公正。当教育的大门能开得更大
<span class="l-p m-rp-s-p">,</span>
<br class="large">
<span class="nowrap">每个人</span>
就能有更多途径来
<span class="nowrap">发挥</span>
<span class="nowrap">自身潜能
<span class="l-p">。</span>
</span>
</p>
A hint: the text is centered, and the container has three fixed widths. Large is 860 px, medium is 600 px, and small is 330 px. The original page is at www.apple.com.cn/education-initiative/.
The answer: Copy the plain text into a single text node inside the original paragraph and compare the three widths:
- At large, “伙伴” and “创造” split across lines.
- At medium, “教育” and “发挥” split.
- At small, “伙伴”, “建立”, and “每个人” split. Once “伙伴” is protected, “建立” moves to a place where it stays together, so that word needs no separate protection.
Apple considered how the paragraph actually renders at each container width and protected precisely the words that would otherwise split at the end of a line.
Responsive Line Breaks
The HTML also has explicit breaks such as <br class="small">. This one inserts a break at small screen sizes only. The site uses this pattern throughout its short headlines.
Take “想升级,时机正正好。” near the bottom of the MacBook Pro page:
<h2 ...>
想升级<span class="s-p">,</span>
<br class="small">
<span class="nowrap">时机正正好
<span class="l-p">。</span>
</span>
</h2>
On medium and large screens it stays on one line. On small screens it breaks into two:
想升级,
时机正正好。
Nonbreaking Spaces in English Product Names
This comes from the English-language Apple.com. Product names with spaces, such as iPhone 18 Pro Max, appear as iPhone 18 Pro Max in the source, keeping the full name together across line breaks.
<p>
iPhone Duo 来了,首款可折叠 iPhone 全新揭幕。上手一展开,就是迄今最薄 iPhone,
<strong>历来最大 iPhone 显示屏直入眼帘,比 iPhone 18 Pro Max 足足大了 50%</strong>
;另一面的外屏,显示面积高达 iPhone 18 Pro 的 90% 以上。iOS 也全面重塑,联手带来各种新摆法、新角度,灵动体验花样百出。
<span class="nowrap">一切</span>
精彩,都纳入坚固精巧的机身中,轻松装进你口袋。这个 iPhone,不同于任何 iPhone。
</p>
Optically Centering Headlines
The visible part of Chinese full-width punctuation sits near the lower left, and the rest of its space is empty. Apple's narrower SF Pro SC punctuation still carries its visual weight near the bottom or lower left of the character box.
When a centered headline ends in punctuation, that extra space can make the line look left of center. The effect becomes more obvious at larger sizes, especially with a centered icon above it for reference.
Shifting the line about 0.5 em to the right makes it look centered:
I found at least three ways Apple implements this. Each effectively takes the punctuation out of the measured width or shifts the whole headline to the right.
- Wrap the trailing punctuation in an absolutely positioned span. See the final period in “支付,由 Apple 支招。” at the top of the Apple Pay page. On small screens the line breaks after “支付,”, so the comma is wrapped in
<span class="s-p">,</span>and receives the adjustment at that size. - Add 0.5 em of padding to the left of the whole headline. The Privacy headline, “力保隐私安全,这很 Apple。”, reveals text from behind password placeholders as you scroll. That may have made it impractical to position the final punctuation separately.
- Insert an invisible span with a right margin of −0.6 rem. The iPhone Duo page uses this approach. In “新面孔加入 iPhone,全场折服。”, it inserts
<span class="center-symbol"></span>after each punctuation mark.
Spacing Between Chinese and Latin Text
Spacing between Chinese and Latin text is a familiar topic. A small gap generally belongs between the two scripts, including between Chinese characters and Arabic numerals.
The W3C's Requirements for Chinese Text Layout, section 6.3.3, says that the space between Chinese characters and Latin letters or numbers should generally be no more than a quarter of a Chinese character's width. It can be omitted at the start or end of a line.
Most professional layout software, such as Microsoft Word, adds this space automatically. Apple's system text layout engine does too. Try it in Notes. The web went a long time without a widely available way to do this. Only in the last couple of years have mainstream browsers broadly supported text-autospace: normal.
Apple's website inserts spaces. I suspect Apple treats this as a copywriting convention, because mixed Chinese and Latin text consistently has the extra spaces. A page that goes up in a hurry will occasionally miss one or two, which gives away the manual work. 😂
Since I noticed this spacing, seeing Chinese and English jammed together on other sites has bothered me. If it bothers you too, try pangu.js in your browser. Its tongue-in-cheek explanation calls this gap the “Space of Pangu,” after the figure who split the chaos between full-width and half-width characters. It jokes that 70% of people who skip it marry someone they don't love at 34, and the other 30% leave their estates to their cats. Love and writing both need a little space.
Localizing the Copy
Localization isn't strictly a technical detail, but there's one example that shows the extraordinary lengths Apple goes to.
The iPhone 18 Pro, Apple Watch, and other products announced in September were set for release on September 18. To avoid a politically sensitive date, Apple's mainland China site changed “available September 18” to “available on the 18th of this month” wherever it referred to the launch. Other dates were left alone. The materials sent to resellers reportedly made the same change. See the September 16 snapshot.
Craft and Brand Value
How many other brands' websites go this far with typography and localization? I'd say zero. All these decisions add up to something distinctive about Apple's brand.
A product's details also show how seriously the people behind it take their work. When I'm using a mediocre product, I often catch myself thinking that someone rushed through it, did the bare minimum, or simply didn't care. Much of the time, when I'm willing to pay more, it's because I'd rather buy something made by people who take their work seriously.