CSS font-variant-east-asian Property
The font-variant-east-asian property controls alternate glyph forms, character widths, and ruby annotation glyphs used in East Asian typography.
It allows authors to request traditional, simplified, or Japanese-specific character forms, adjust full-width and proportional glyph presentation, and select glyphs designed for ruby annotations. The visible results depend on the selected font and its supported OpenType features.
font-variant-east-asian Syntax
The property accepts normal or a combination of compatible glyph-form, width, and ruby values.
Basic Syntax
selector {
font-variant-east-asian: normal;
}
Japanese Glyph Forms
selector {
font-variant-east-asian: jis04;
}
Traditional Chinese Glyph Forms
selector {
font-variant-east-asian: traditional;
}
Proportional-Width Glyphs
selector {
font-variant-east-asian: proportional-width;
}
Combined Values
selector {
font-variant-east-asian: jis04 proportional-width ruby;
}
CSS-Wide Keywords
.example {
font-variant-east-asian: inherit;
}
.example {
font-variant-east-asian: initial;
}
.example {
font-variant-east-asian: unset;
}
.example {
font-variant-east-asian: revert;
}
.example {
font-variant-east-asian: revert-layer;
}
Only one glyph-form value and one width value can be specified at a time. The ruby keyword may be added to a compatible combination.
Property Values
The following values control East Asian glyph selection and presentation.
| Value | Description |
|---|---|
normal |
Uses the default East Asian glyph variant settings. |
jis78 |
Requests Japanese glyph forms associated with JIS X 0208-1978. |
jis83 |
Requests Japanese glyph forms associated with JIS X 0208-1983. |
jis90 |
Requests Japanese glyph forms associated with JIS X 0208-1990. |
jis04 |
Requests Japanese glyph forms associated with JIS X 0213:2004. |
simplified |
Requests glyph forms associated with Simplified Chinese typography. |
traditional |
Requests glyph forms associated with Traditional Chinese typography. |
full-width |
Requests full-width glyph variants. |
proportional-width |
Requests proportional-width glyph variants. |
ruby |
Requests glyph forms designed for ruby annotations. |
Property Characteristics
| Characteristic | Value |
|---|---|
| Initial value | normal |
| Inherited | Yes |
| Applies to | All elements and text |
| Computed value | As specified |
| Animation type | Discrete |
| Percentages | Not applicable |
The property uses OpenType features to request alternate glyphs. A declaration may be valid even when the selected font does not contain the requested forms.
How It Works
East Asian fonts may contain different glyph designs for the same Unicode character. The font-variant-east-asian property requests particular variants without replacing the underlying characters.
Default Glyph Selection
.text {
font-variant-east-asian: normal;
}
Request a Japanese Variant
.japanese-text {
font-variant-east-asian: jis04;
}
Request a Chinese Variant
.chinese-text {
font-variant-east-asian: traditional;
}
Request a Width Variant
.text {
font-variant-east-asian: proportional-width;
}
Font Feature Selection
The browser maps these values to corresponding OpenType features. The selected font determines which glyph substitutions are available.
Important Consideration
These values do not translate text or convert one writing system into another. They select alternate glyph designs where the font provides them.
The normal Value
The normal value uses the default East Asian glyph variant settings.
Basic Example
.text {
font-variant-east-asian: normal;
}
Reset a Variant
.japanese-section {
font-variant-east-asian: jis04;
}
.japanese-section .default-text {
font-variant-east-asian: normal;
}
Default Behavior
The browser uses its normal font shaping behavior, which may also depend on language information and the selected font.
Important Consideration
The normal value does not disable all language-sensitive glyph substitutions. It simply avoids requesting the optional variants controlled by this property.
JIS78 Glyph Forms
The jis78 value requests Japanese glyph forms associated with the 1978 version of the JIS X 0208 character standard.
Basic Example
.japanese-text {
font-variant-east-asian: jis78;
}
HTML Example
<p lang="ja" class="japanese-text">日本語の文字</p>
OpenType Feature
The value corresponds to the OpenType jp78 feature.
Typical Uses
Older Japanese glyph forms may be useful for historical typography or documents that require a particular Japanese typographic convention.
Important Consideration
Only characters with corresponding alternate glyphs are affected. Other characters remain unchanged.
JIS83 Glyph Forms
The jis83 value requests Japanese glyph forms associated with the 1983 revision of JIS X 0208.
Basic Example
.japanese-text {
font-variant-east-asian: jis83;
}
HTML Example
<p lang="ja" class="japanese-text">日本語の文字</p>
OpenType Feature
The value corresponds to the OpenType jp83 feature.
Difference from jis78
The jis78 and jis83 values request glyph forms associated with different Japanese standard revisions. Some characters have different shapes between these versions.
Important Consideration
The selected font must contain the corresponding glyph substitutions for a visible difference.
JIS90 Glyph Forms
The jis90 value requests Japanese glyph forms associated with the 1990 revision of JIS X 0208.
Basic Example
.japanese-text {
font-variant-east-asian: jis90;
}
HTML Example
<p lang="ja" class="japanese-text">日本語の文字</p>
OpenType Feature
The value corresponds to the OpenType jp90 feature.
Typical Uses
This value may be useful when matching typography based on older Japanese glyph conventions.
Important Consideration
Font availability matters. A font without the jp90 feature may display the same glyphs as the default setting.
JIS04 Glyph Forms
The jis04 value requests Japanese glyph forms associated with JIS X 0213:2004.
Basic Example
.japanese-text {
font-variant-east-asian: jis04;
}
HTML Example
<p lang="ja" class="japanese-text">日本語の文字</p>
OpenType Feature
The value corresponds to the OpenType jp04 feature.
Difference from Older JIS Forms
Some Japanese character shapes differ between the 2004 convention and earlier JIS revisions.
Important Consideration
Use a Japanese font that provides the jp04 feature when a specific glyph appearance is required.
Simplified Chinese Forms
The simplified value requests glyph forms associated with Simplified Chinese typography.
Basic Example
.chinese-text {
font-variant-east-asian: simplified;
}
HTML Example
<p lang="zh-Hans" class="chinese-text">中文排版示例</p>
OpenType Feature
The value corresponds to the OpenType smpl feature.
Language Information
The lang="zh-Hans" attribute identifies the content as Simplified Chinese. This language information can also influence font selection and glyph shaping.
Important Consideration
The property does not convert Traditional Chinese text into Simplified Chinese. It requests alternate glyph forms for characters already present in the text.
Traditional Chinese Forms
The traditional value requests glyph forms associated with Traditional Chinese typography.
Basic Example
.chinese-text {
font-variant-east-asian: traditional;
}
HTML Example
<p lang="zh-Hant" class="chinese-text">中文排版示例</p>
OpenType Feature
The value corresponds to the OpenType trad feature.
Language Information
The lang="zh-Hant" attribute identifies the content as Traditional Chinese.
Important Consideration
The property does not translate or convert Simplified Chinese text into Traditional Chinese. It requests alternate glyph shapes where the font provides them.
Full-Width Glyphs
The full-width value requests full-width glyph variants, commonly used in East Asian typography.
Basic Example
.east-asian-text {
font-variant-east-asian: full-width;
}
HTML Example
<p class="east-asian-text">ABC 123</p>
OpenType Feature
The value corresponds to the OpenType fwid feature.
Typical Uses
Full-width glyphs may help align Latin letters, numbers, and punctuation with the square character cells commonly used in East Asian text layouts.
Important Consideration
The font must provide full-width alternatives for the relevant characters. The property does not change the actual Unicode characters.
Proportional-Width Glyphs
The proportional-width value requests proportional glyph variants instead of fixed-width East Asian forms.
Basic Example
.east-asian-text {
font-variant-east-asian: proportional-width;
}
HTML Example
<p lang="ja" class="east-asian-text">日本語の文字と句読点。</p>
OpenType Feature
The value corresponds to the OpenType pwid feature.
Typical Uses
Proportional-width glyphs can improve spacing in headings or other text where fixed-width character cells are not required.
Important Consideration
Proportional-width forms are not available for every character or font. The actual spacing depends on the glyphs provided by the selected typeface.
Ruby Glyphs
The ruby value requests glyph forms designed for ruby annotations, which are small pronunciation or explanatory labels placed alongside East Asian text.
Basic Example
rt {
font-variant-east-asian: ruby;
}
HTML Example
<ruby lang="ja">
漢字
<rt>かんじ</rt>
</ruby>
OpenType Feature
The value corresponds to the OpenType ruby feature.
Why Ruby Glyphs Matter
Ruby text is typically smaller than the main text. Fonts may provide specially designed glyphs that remain clearer at reduced sizes.
Ruby Styling
ruby rt {
font-size: 0.6em;
font-variant-east-asian: ruby;
}
Important Consideration
The ruby keyword selects alternate glyphs. It does not create ruby annotations or control their positioning. Use the HTML <ruby> and <rt> elements to provide annotation content.
Combining Values
The property allows compatible values from different categories to be combined in one declaration.
Japanese Forms and Proportional Width
.japanese-text {
font-variant-east-asian: jis04 proportional-width;
}
Traditional Forms and Full Width
.chinese-text {
font-variant-east-asian: traditional full-width;
}
Japanese Forms and Ruby
rt {
font-variant-east-asian: jis04 ruby;
}
Three Compatible Values
.example {
font-variant-east-asian: jis04 proportional-width ruby;
}
Invalid Glyph-Form Combination
.example {
font-variant-east-asian: jis78 jis04;
}
This declaration is invalid because two glyph-form values cannot be specified together.
Invalid Width Combination
.example {
font-variant-east-asian: full-width proportional-width;
}
This declaration is invalid because the width values are mutually exclusive.
Invalid normal Combination
.example {
font-variant-east-asian: normal ruby;
}
The normal keyword must be used alone.
Language and Font Selection
Correct language information and appropriate fonts are essential for reliable East Asian typography.
Japanese Text
<p lang="ja">日本語の文字</p>
Simplified Chinese Text
<p lang="zh-Hans">中文排版示例</p>
Traditional Chinese Text
<p lang="zh-Hant">中文排版示例</p>
Japanese Font Stack
.japanese-text {
font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
font-variant-east-asian: jis04;
}
Chinese Font Stack
.chinese-text {
font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
font-variant-east-asian: simplified;
}
Why Language Matters
Some Han characters are shared across Chinese and Japanese writing systems but have different preferred glyph forms. Language metadata helps browsers and fonts select appropriate regional designs.
Important Consideration
Do not rely on CSS alone to identify the language of content. Use accurate HTML lang attributes and select fonts that support the intended writing system.
The font-variant Shorthand
The font-variant shorthand can set East Asian glyph features alongside other font variant properties.
Longhand Example
.japanese-text {
font-variant-east-asian: jis04;
}
Shorthand Example
.japanese-text {
font-variant: jis04;
}
Combining East Asian and Numeric Features
.example {
font-variant: jis04 tabular-nums;
}
Combining East Asian and Ligature Features
.example {
font-variant: proportional-width common-ligatures;
}
Shorthand Reset Behavior
.example {
font-variant-east-asian: jis04;
font-variant: tabular-nums;
}
The later shorthand resets font-variant-east-asian to normal because the East Asian feature is not included.
Preserving Both Features
.example {
font-variant: jis04 tabular-nums;
}
Important Consideration
Use font-variant-east-asian when changing only East Asian glyph settings. Use font-variant when several font variant categories need to be defined together.
Using font-feature-settings
The font-feature-settings property provides direct access to the OpenType features used by East Asian glyph variants.
High-Level Japanese Forms
.japanese-text {
font-variant-east-asian: jis04;
}
Low-Level Japanese Forms
.japanese-text {
font-feature-settings: "jp04" 1;
}
High-Level Proportional Width
.japanese-text {
font-variant-east-asian: proportional-width;
}
Low-Level Proportional Width
.japanese-text {
font-feature-settings: "pwid" 1;
}
High-Level Ruby Glyphs
rt {
font-variant-east-asian: ruby;
}
Low-Level Ruby Glyphs
rt {
font-feature-settings: "ruby" 1;
}
Preferred Approach
Use font-variant-east-asian for readable, high-level glyph selection. Use font-feature-settings when direct control over OpenType feature tags is necessary.
Important Consideration
Low-level feature settings may interact with higher-level font properties. Avoid conflicting declarations unless the behavior is intentional.
Inheritance
The font-variant-east-asian property is inherited. Child elements receive the parent's East Asian glyph settings unless they specify another value.
Inherited Setting
.japanese-section {
font-variant-east-asian: jis04;
}
<div lang="ja" class="japanese-section">
<h2>日本語の見出し</h2>
<p>日本語の本文</p>
</div>
Override a Child Element
.japanese-section {
font-variant-east-asian: jis04;
}
.japanese-section .default-text {
font-variant-east-asian: normal;
}
Explicit Inheritance
.child {
font-variant-east-asian: inherit;
}
Reset to Initial Value
.child {
font-variant-east-asian: initial;
}
Important Consideration
Inherited glyph settings may affect descendant text using different fonts or languages. Apply the property to appropriately scoped language-specific content.
font-variant-east-asian Example
This example compares normal glyph selection with Japanese JIS04 forms and proportional-width glyphs. The visible differences depend on the selected font.
HTML Example
<div class="font-variant-east-asian-demo" lang="ja">
<p class="demo-label">Normal</p>
<p class="normal-text">日本語の文字と句読点。</p>
<p class="demo-label">JIS04</p>
<p class="jis04-text">日本語の文字と句読点。</p>
<p class="demo-label">Proportional width</p>
<p class="proportional-text">日本語の文字と句読点。</p>
</div>
CSS Example
.font-variant-east-asian-demo {
font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
}
.font-variant-east-asian-demo p {
margin: 0 0 16px;
}
.font-variant-east-asian-demo .demo-label {
font: 600 13px/1.4 Arial, sans-serif;
}
.font-variant-east-asian-demo .normal-text,
.font-variant-east-asian-demo .jis04-text,
.font-variant-east-asian-demo .proportional-text {
font-size: 26px;
line-height: 1.6;
}
.font-variant-east-asian-demo .normal-text {
font-variant-east-asian: normal;
}
.font-variant-east-asian-demo .jis04-text {
font-variant-east-asian: jis04;
}
.font-variant-east-asian-demo .proportional-text {
font-variant-east-asian: proportional-width;
}
Normal
日本語の文字と句読点。
JIS04
日本語の文字と句読点。
Proportional width
日本語の文字と句読点。
The first line uses default glyph selection. The second requests JIS04 glyph forms, while the third requests proportional-width variants.
The lines may look identical if the selected font does not provide the requested features or if the sample characters have no alternate forms. For a more reliable comparison, use a font with documented jp04 and pwid support.
Common Mistakes
The most common mistakes involve incompatible values, missing font features, and confusion between glyph selection and language conversion.
Combining Multiple Glyph-Form Values
.example {
font-variant-east-asian: jis78 jis04;
}
This declaration is invalid because the property accepts only one glyph-form value.
Combining Both Width Values
.example {
font-variant-east-asian: full-width proportional-width;
}
This declaration is invalid because the width values are mutually exclusive.
Combining normal with Another Value
.example {
font-variant-east-asian: normal ruby;
}
The normal keyword must be used alone.
Assuming simplified Converts Text
The simplified value requests alternate glyph forms. It does not convert Traditional Chinese characters into Simplified Chinese characters.
Assuming traditional Converts Text
The traditional value does not convert Simplified Chinese text into Traditional Chinese.
Using ruby Without Ruby Markup
The ruby value does not create annotations. Use HTML <ruby> and <rt> elements to provide ruby content.
Ignoring Language Attributes
Missing or incorrect lang attributes can lead to inappropriate regional glyph selection.
Using Fonts Without the Requested Features
A valid CSS declaration may have no visible effect if the font lacks the corresponding OpenType feature.
Ignoring Shorthand Reset Behavior
A later font-variant declaration can reset font-variant-east-asian to normal.
Important Considerations
Keep the following points in mind when using the font-variant-east-asian property:
- Purpose: Controls East Asian glyph variants, widths, and ruby glyph forms.
- Property type: Longhand of
font-variant. - Initial value:
normal. - Inheritance: The property is inherited.
- Applies to: All elements and text.
- normal: Uses default East Asian glyph variant settings.
- jis78: Requests Japanese 1978 glyph forms.
- jis83: Requests Japanese 1983 glyph forms.
- jis90: Requests Japanese 1990 glyph forms.
- jis04: Requests Japanese 2004 glyph forms.
- simplified: Requests Simplified Chinese glyph forms.
- traditional: Requests Traditional Chinese glyph forms.
- full-width: Requests full-width glyph variants.
- proportional-width: Requests proportional-width glyph variants.
- ruby: Requests glyphs designed for ruby annotations.
- Compatible combinations: One glyph-form value, one width value, and
rubymay be combined. - Language metadata: Use accurate HTML
langattributes. - OpenType: Alternate forms depend on font feature support.
- Font selection: Choose fonts appropriate for the intended language and region.
- Text conversion: The property does not translate or convert characters.
- Shorthand reset: A later
font-variantdeclaration may reset the property. - Browser support: Check compatibility for the requested values.
Use font-variant-east-asian when a design requires specific East Asian glyph conventions or width variants. Correct language markup and fonts with the appropriate OpenType features are essential for consistent results.
Browser Support
The CSS font-variant-east-asian property is Widely available in modern browsers, including Chrome, Edge, Firefox, and Safari.
Support for individual values and visible results may vary depending on browser version, font availability, and OpenType feature support.
Basic Example
.japanese-text {
font-variant-east-asian: jis04;
}
Feature Detection
@supports (font-variant-east-asian: jis04) {
.japanese-text {
font-variant-east-asian: jis04;
}
}
Progressive Enhancement
.japanese-text {
font-variant-east-asian: normal;
}
@supports (font-variant-east-asian: jis04) {
.japanese-text {
font-variant-east-asian: jis04;
}
}
Font Feature Availability
The @supports rule checks whether the browser recognizes the CSS declaration. It does not confirm that the selected font contains the requested glyph variants.
For current compatibility information, visit Can I Use? and search for font-variant-east-asian.
Specifications
The font-variant-east-asian property is defined in the CSS Fonts Module, which describes East Asian glyph variants and their relationships to OpenType features.
CSS Fonts Module Level 4: font-variant-east-asian
The module also defines the font-variant shorthand and other typographic feature controls.
For additional explanations and examples, see MDN Web Docs.
