font-variant-east-asian
Quick Summary for 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.
Code Usage for font-variant-east-asian
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: revert; font-variant-east-asian: unset; 
More Details for font-variant-east-asian

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: revert; 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:

Keyword Standard defining the glyphs OpenType equivalent
jis78 JIS X 0208:1978 jp78
jis83 JIS X 0208:1983 jp83
jis90 JIS X 0208:1990 jp90
jis04 JIS X 0213:2004 jp04
simplified None, use the simplified Chinese glyphs smpl
traditional None, use the traditional Chinese glyphs trad
<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.

Formal definition

Initial valuenormal
Applies toall elements. It also applies to ::first-letter and ::first-line.
Inheritedyes
Computed valueas specified
Animation typediscrete

Formal syntax

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

Setting East Asian glyph variants

This example require font "Yu Gothic" installed in your OS, other fonts may not support OpenType features.

HTML
<table> <thead></thead> <tbody style="border:0;">   <tr>     <th>normal/jis78:</th>     <td>麹町</td>     <td class="jis78">麹町</td>   </tr>   <tr>     <th>normal/ruby:</th>     <td>しんかんせん</td>     <td class="ruby">しんかんせん</td>   </tr>   <tr>     <th>normal/traditional:</th>     <td>大学</td>     <td class="traditional">大学</td>   </tr> </tbody> </table> 
CSS
td{   font-family:"Yu Gothic";   font-size:20px; } th{   color:grey;   padding-right:10px; }  .ruby {   font-variant-east-asian: ruby; }  .jis78 {   font-variant-east-asian: jis78; }  .traditional{   font-variant-east-asian: traditional; } 
Result

Specifications

Specification
CSS Fonts Module Level 4 # font-variant-east-asian-prop

See Also

font-variant-alternates font-variant-caps font-variant font-variant-ligatures font-variant-numeric

No Items Found.

Add Comment
Type in a Nick Name here
 
Other Categories in CSS
css
Search CSS
Search CSS by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code here, mostly for my reference. Also if i find a good link, i usually add it here and then forget about it. more...

You could also follow me on twitter. I have a couple of youtube channels if you want to see some video related content. RuneScape 3, Minecraft and also a coding channel here Web Dev.

If you found something useful or like my work, you can buy me a coffee here. Mmm Coffee. ☕

❤️👩‍💻🎮

🪦 2000 - 16 Oct 2022 - Boots
Random Quote

"Olivia, my eldest daughter, caught measles when she was seven years old. As the illness took its usual course I can remember reading to her often in bed and not feeling particularly alarmed about it. Then one morning, when she was well on the road to recovery, I was sitting on her bed showing her how to fashion little animals out of coloured pipe-cleaners, and when it came to her turn to make one herself, I noticed that her fingers and her mind were not working together and she couldn’t do anything. 'Are you feeling all right?' I asked her. 'I feel all sleepy,' she said. In an hour, she was unconscious. In twelve hours she was dead. The measles had turned into a terrible thing called measles encephalitis and there was nothing the doctors could do to save her. That was...in 1962, but even now, if a child with measles happens to develop the same deadly reaction from measles as Olivia did, there would still be nothing the doctors could do to help her. On the other hand, there is today something that parents can do to make sure that this sort of tragedy does not happen to a child of theirs. They can insist that their child is immunised against measles. ...I dedicated two of my books to Olivia, the first was ‘James and the Giant Peach’. That was when she was still alive. The second was ‘The BFG’, dedicated to her memory after she had died from measles. You will see her name at the beginning of each of these books. And I know how happy she would be if only she could know that her death had helped to save a good deal of illness and death among other children."

I just checked google books for BFG, and the dedication is there. 

https://www.google.com.au/books/edition/_/quybcXrFhCIC?hl=en&gbpv=1 


Roald Dahl, 1986
Random CSS Property

border-bottom-color

The border-bottom-color CSS property sets the color of an element's bottom border. It can also be set with the shorthand CSS properties border-color or border-bottom.
border-bottom-color css reference