Blog / Development

Chinese, Japanese and Korean typography on the web

Lunar New Year pages often need Chinese, Korean or Vietnamese text. A few CSS settings make the difference between text that looks native and text that looks broken.

By Abdullah NomanDecember 3, 20263 min read

Spring couplets, hairline isometric illustration

Short answer: set the right lang on each element, use a font stack with system CJK fonts or a subset web font, increase line height to about 1.7, use word-break: keep-all for Korean, and never fake italics or add letter-spacing to CJK text.

1. Set lang correctly

<html lang="zh-Hans">   <!-- simplified Chinese -->
<p lang="zh-Hant">…</p> <!-- traditional Chinese -->
<p lang="ko">…</p>      <!-- Korean -->
<p lang="vi">…</p>      <!-- Vietnamese -->

Chinese, Japanese and Korean share many characters that are drawn differently in each language. The lang attribute tells the browser which glyphs and fonts to use.

2. Font stacks

:lang(zh-Hans) { font-family: "Your Latin Font", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
:lang(ko)      { font-family: "Your Latin Font", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; }

Put your Latin font first so numbers and English keep your brand look. CJK web fonts are large, so prefer system fonts, or use a subset or a font service that splits files by character.

3. Size and spacing

  • CJK characters are dense; body text at 16 px is a minimum, and many sites use 16 to 18 px.
  • Line height around 1.7 reads more comfortably than the 1.5 common for English.
  • Do not add letter-spacing to CJK body text.

4. Line breaking

  • Chinese and Japanese have no spaces; browsers break between characters. line-break: strict avoids starting lines with closing punctuation.
  • Korean uses spaces between words. word-break: keep-all stops words breaking in the middle.

5. Emphasis

CJK fonts rarely have true italics, and browsers fake them by slanting. Use bold, colour or text-emphasis instead.

6. Vietnamese

Vietnamese uses Latin letters with many stacked diacritics. Check your fonts support them fully, and give a little extra line height so marks do not collide.

Spring couplets, hairline isometric illustration
Spring couplets: one place where the right font really shows. Door spring couplets

Questions

How do I set Chinese fonts in CSS?

Use a stack such as "PingFang SC", "Microsoft YaHei", "Noto Sans SC", after your Latin font, and set lang="zh-Hans".

What does word-break: keep-all do for Korean?

It keeps Korean words whole and breaks lines at spaces, as Korean readers expect.

Why does the lang attribute matter for CJK?

Chinese, Japanese and Korean share characters drawn differently in each language; lang selects the right glyphs.

Can I use italics for Chinese text?

Avoid them. Most CJK fonts have no true italics; use bold, colour or text-emphasis instead.

Keep reading