Skip to content

Commit 691178d

Browse files
committed
[css-writing-modes] Require hwid/twid/qwid for OT implementations of TCY compression when they are available for all characters in the composition
1 parent 2d57db1 commit 691178d

2 files changed

Lines changed: 21 additions & 10 deletions

File tree

css-writing-modes/Overview.html

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
rel=dcterms.rights>
1111
<meta content="CSS Writing Modes Module Level 3" name=dcterms.title>
1212
<meta content=text name=dcterms.type>
13-
<meta content=2013-07-10 name=dcterms.date>
13+
<meta content=2013-07-16 name=dcterms.date>
1414
<meta content="Elika J. Etemad" name=dcterms.creator>
1515
<meta content="Koji Ishii" name=dcterms.creator>
1616
<meta content=W3C name=dcterms.publisher>
@@ -46,15 +46,15 @@
4646

4747
<h1>CSS Writing Modes Module Level 3</h1>
4848

49-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 10 July 2013</h2>
49+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 16 July 2013</h2>
5050

5151
<dl>
5252
<dt>This version:
5353

5454
<dd><a
5555
href="http://dev.w3.org/csswg/css3-writing-modes/">http://dev.w3.org/csswg/css3-writing-modes/</a>
5656
<!--
57-
<dd><a href="http://www.w3.org/TR/2013/WD-css3-writing-modes-20130710/">http://dev.w3.org/csswg/css3-writing-modes/</a>
57+
<dd><a href="http://www.w3.org/TR/2013/WD-css3-writing-modes-20130716/">http://dev.w3.org/csswg/css3-writing-modes/</a>
5858
-->
5959

6060
<dt>Latest version:
@@ -3438,10 +3438,15 @@ <h3 id=text-combine-horizontal><span class=secno>9.1. </span>
34383438
<p>The UA must ensure that the combined advance width of the composition
34393439
fits within 1em by compressing the combined text if necessary. (This does
34403440
not necessarily mean that the glyphs will fit within 1em, as some glyphs
3441-
are designed to draw outside their geometric boundaries.) The UA may use
3442-
any means to do so, including substituting half-width, third-width, and/or
3443-
quarter-width glyphs provided by the font or using other font features
3444-
designed to compress text horizontally.
3441+
are designed to draw outside their geometric boundaries.) OpenType
3442+
implementations <em>must</em> use width-specific variants
3443+
(<code>hwid<code>/<code>twid</code>/<code>qwid</code>) to compress text in
3444+
cases where those variants are available for all <a
3445+
href="#character"><i>characters</i></a> in the composition. Otherwise, the
3446+
UA may use any means to compress the text, including substituting
3447+
half-width, third-width, and/or quarter-width glyphs provided by the font,
3448+
using other font features designed to compress text horizontally, scaling
3449+
the text geometrically, or any combination thereof. </code></code>
34453450

34463451
<div class=example>
34473452
<p>For example, a simple OpenType-based implementation might compress the

css-writing-modes/Overview.src.html

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2563,9 +2563,15 @@ <h3 id="text-combine-horizontal">
25632563
fits within 1em by compressing the combined text if necessary.
25642564
(This does not necessarily mean that the glyphs will fit within 1em,
25652565
as some glyphs are designed to draw outside their geometric boundaries.)
2566-
The UA may use any means to do so,
2567-
including substituting half-width, third-width, and/or quarter-width glyphs provided by the font
2568-
or using other font features designed to compress text horizontally.
2566+
OpenType implementations <em>must</em> use width-specific variants
2567+
(<code>hwid<code>/<code>twid</code>/<code>qwid</code>)
2568+
to compress text
2569+
in cases where those variants are available for all <i>characters</i> in the composition.
2570+
Otherwise, the UA may use any means to compress the text,
2571+
including substituting half-width, third-width, and/or quarter-width glyphs provided by the font,
2572+
using other font features designed to compress text horizontally,
2573+
scaling the text geometrically,
2574+
or any combination thereof.
25692575

25702576
<div class="example">
25712577
<p>For example, a simple OpenType-based implementation might compress the text as follows:

0 commit comments

Comments
 (0)