font-variant-east-asian

CSS font-variant-east-asian Property

The font-variant-east-asian property controls the usage of alternate glyphs for East Asian scripts. In particular, it is used to control glyph substitution and sizing in East Asian texts.

This property is one of the CSS3 properties.

类目类目
Initial Valuenormal
Applies toAll elements. It also applies to ::first-letter and ::first-line.
InheritedYes.
AnimatableNo.
VersionCSS3
DOM Syntaxobject.style.fontVariantEastAsian = “ruby”;

Syntax

Syntax

font-variant-east-asian: normal | <east-asian-variant-values> | <east-asian-width-values> | ruby | initial | inherit ;

Example of the font-variant-east-asian property:

<!DOCTYPE html>
<html>
  <head>
    <title>Title of the document</title>
    <style>
      h2 {
        font-variant-east-asian: traditional;
      }
    </style>
  </head>
  <body>
    <h2>Font-variant-east-asian property example</h2>
    <h2>大学 → 大學</h2>
  </body>
</html>

You can see here that the font-variant-east-asian property is set to traditional. You can change it to any of the values mentioned in the table below this page, including the simplified variant.

Result

Values

Values

ValueDescription
normalThe use of alternate glyphs are not enabled.
<east-asian-variant-values>Specifies a set of logographic glyph variants which are be used for display. Values are:

jis78 jis83 jis90 jis04 simplified traditional| |<east-asian-width-values>|Controls the sizing of figures used for East Asian characters. Values are:

proportional-width full-width| |ruby|Forces the use of special glyphs for ruby characters.| |initial|Makes the property use its default value.| |inherit|Inherits the property from its parents element.|



请遵守《互联网环境法规》文明发言,欢迎讨论问题
扫码反馈

扫一扫,反馈当前页面

咨询反馈
扫码关注
返回顶部