Skip to content

Commit 6e66f4c

Browse files
committed
[css-values-4] Add ic unit for ideographic advance.
1 parent 18f4173 commit 6e66f4c

1 file changed

Lines changed: 33 additions & 4 deletions

File tree

css-values/Overview.bs

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,13 @@ Relative lengths</h3>
872872
<tr><td>''ex''
873873
<td>x-height of the element's font
874874
<tr><td>''ch''
875-
<td>width of the "0" (ZERO, U+0030) glyph in the element's font
875+
<td>average <a lt="advance measure">character advance</a>
876+
of a narrow glyph in the element’s font,
877+
as represented by the “0” (ZERO, U+0030) glyph
878+
<tr><td>''ic''
879+
<td>average <a lt="advance measure">character advance</a>
880+
of a fullwidth glyph in the element’s font,
881+
as represented by the “水” (CJK water ideograph, U+6C34) glyph
876882
<tr><td>''rem''
877883
<td>font size of the root element
878884
<tr><td>''vw''
@@ -904,7 +910,7 @@ Relative lengths</h3>
904910
-->
905911

906912
<h4 id="font-relative-lengths">
907-
Font-relative lengths: the ''em'', ''ex'', ''ch'', ''rem'' units</h4>
913+
Font-relative lengths: the ''em'', ''ex'', ''ch'', ''ic'', ''rem'' units</h4>
908914

909915
Aside from ''rem'' (which refers to the font-size of the root element),
910916
the <dfn export id="font-relative-length">font-relative lengths</dfn> refer to the font metrics of the element on which they are used.
@@ -949,11 +955,16 @@ Font-relative lengths: the ''em'', ''ex'', ''ch'', ''rem'' units</h4>
949955

950956
<dt><dfn id="ch" lt="ch">ch unit</dfn>
951957
<dd>
952-
Equal to the used <a>advance measure</a> of the "0" (ZERO, U+0030) glyph
958+
Equal to the used <a>advance measure</a> of the “水” (CJK water ideograph, U+6C34) glyph
953959
found in the font used to render it.
954960
(The <dfn dfn>advance measure</dfn> of a glyph is its advance width or height,
955961
whichever is in the inline axis of the element.)
956962

963+
This measurement is an approximation
964+
(and in monospace fonts, an exact measure)
965+
of a single narrow glyph’s <a>advance measure</a>,
966+
thus allowing measurements based on an expected glyph count.
967+
957968
Note: The advance measure of a glyph depends on writing-mode and text-orientation
958969
as well as font settings, text-transform, and any other properties that affect glyph selection or orientation.
959970

@@ -964,6 +975,22 @@ Font-relative lengths: the ''em'', ''ex'', ''ch'', ''rem'' units</h4>
964975
(i.e. 'writing-mode' is ''vertical-rl'' or ''vertical-lr''
965976
and 'text-orientation' is ''text-orientation/upright'').
966977

978+
<dt><dfn id="ic" lt="ic">ic unit</dfn>
979+
<dd>
980+
Equal to the used <a>advance measure</a> of the “0” (ZERO, U+0030) glyph
981+
in the font used to render it.
982+
983+
This measurement is an approximation
984+
(and in monospace fonts, an exact measure)
985+
of a single <a href="http://unicode.org/reports/tr11/#Definitions">fullwidth</a> glyph’s <a>advance measure</a>,
986+
thus allowing measurements based on an expected glyph count.
987+
988+
Note: The advance measure of a glyph can depend on writing-mode and text-orientation
989+
as well as font settings, text-transform, and any other properties that affect glyph selection or orientation.
990+
991+
In the cases where it is impossible or impractical to determine the ideographic advance measure,
992+
it must be assumed to be 1em.
993+
967994
<dt><dfn id="rem" lt="rem">rem unit</dfn>
968995
<dd>
969996
Equal to the computed value of 'font-size' on the root element.
@@ -2228,6 +2255,8 @@ Acknowledgments</h2>
22282255
of this module.
22292256

22302257
Secondly, we would like to acknowledge
2258+
Koji Ishii
2259+
and
22312260
Xidorn Quan
22322261
for their comments and suggestions,
22332262
which have improved Level 4.
@@ -2238,7 +2267,7 @@ Changes</h2>
22382267
Changes since <a href="http://www.w3.org/TR/css-values-3/">Level 3</a>:
22392268

22402269
<ul>
2241-
<li>Added the ''vi'' and ''vb'' units.
2270+
<li>Added the ''vi'', ''vb'', and ''ic'' units.
22422271
</ul>
22432272

22442273
<h2 class="no-num" id="sec-pri">

0 commit comments

Comments
 (0)