font-variant-east-asian
The font-variant-east-asian
CSS property controls the use of alternate glyphs for East Asian scripts, like Japanese and Chinese.
font-variant-east-asian: normal;
font-variant-east-asian: ruby;
font-variant-east-asian: jis78; /* <east-asian-variant-values> */
font-variant-east-asian: jis83; /* <east-asian-variant-values> */
font-variant-east-asian: jis90; /* <east-asian-variant-values> */
font-variant-east-asian: jis04; /* <east-asian-variant-values> */
font-variant-east-asian: simplified; /* <east-asian-variant-values> */
font-variant-east-asian: traditional; /* <east-asian-variant-values> */
font-variant-east-asian: full-width; /* <east-asian-width-values> */
font-variant-east-asian: proportional-width; /* <east-asian-width-values> */
font-variant-east-asian: ruby full-width jis83;
/* Global values */
font-variant-east-asian: inherit;
font-variant-east-asian: initial;
font-variant-east-asian: unset;
Syntax
Values
normal
- This keyword leads to the deactivation of the use of such alternate glyphs.
ruby
- This keyword forces the use of special glyphs for ruby characters. As these are usually smaller, font creators often designs specific forms, usually slightly bolder to improve the contrast. This keyword corresponds to the OpenType values
ruby
. <east-asian-variant-values>
- These values specify a set of logographic glyph variants which should be used for display. Possible values are:
<east-asian-width-values>
- These values control the sizing of figures used for East Asian characters. Two values are possible:
-
proportional-width
activating the set of East Asian characters which vary in width. It corresponds to the OpenType values pwid
. -
full-width
activating the set of East Asian characters which are all of the same, roughly square, width metric. It corresponds to the OpenType values fwid
.
normal | [ <east-asian-variant-values> || <east-asian-width-values> || ruby ]where
<east-asian-variant-values> = [ jis78 | jis83 | jis90 | jis04 | simplified | traditional ]
<east-asian-width-values> = [ full-width | proportional-width ]
Examples
HTML
<p class="normal">!</p>
CSS
p {
font-variant-east-asian: ruby;
}
Result
Live sample link
Specifications
|
Desktop |
|
Chrome |
Edge |
Firefox |
Internet Explorer |
Opera |
Safari |
Basic support
|
63 |
No |
34
- 34
- 24 — 34
Disabled
- Disabled From version 24 until version 34 (exclusive): this feature is behind the
layout.css.font-features.enabled preference (needs to be set to true ). To change preferences in Firefox, visit about:config.
|
No |
50 |
No |
|
Mobile |
|
Android webview |
Chrome for Android |
Edge Mobile |
Firefox for Android |
Opera for Android |
iOS Safari |
Samsung Internet |
Basic support
|
63 |
63 |
No |
34
- 34
- 24 — 34
Disabled
- Disabled From version 24 until version 34 (exclusive): this feature is behind the
layout.css.font-features.enabled preference (needs to be set to true ). To change preferences in Firefox, visit about:config.
|
50 |
No |
No |