Skip to content

Commit aab8657

Browse files
committed
Improve organization of vertical-font-features section.
1 parent c83bab2 commit aab8657

2 files changed

Lines changed: 69 additions & 58 deletions

File tree

css3-writing-modes/Overview.html

Lines changed: 39 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1822,36 +1822,45 @@ <h3 id=text-orientation><span class=secno>5.1. </span> Orienting Text: the
18221822
<h4 id=vertical-font-features><span class=secno>5.1.1. </span> Vertical
18231823
Typesetting and Font Features</h4>
18241824

1825-
<p>Vertical font metrics are used to set upright characters in &lsquo;<a
1826-
href="#mixed-right"><code class=css>mixed-right</code></a>&rsquo; and
1827-
&lsquo;<a href="#upright"><code class=css>upright</code></a>&rsquo; modes.
1828-
The UA must synthesize vertical font metrics for fonts that lack them.
1829-
(This specification does not define heuristics for synthesizing such
1830-
metrics.) Additionally, font features (such as alternate glyphs) intended
1831-
for use in vertical typesetting must be used. (E.g. the OpenType
1832-
&lsquo;<code class=css>vert</code>&rsquo; feature must be enabled.)
1833-
1834-
<p>Characters from horizontal shaping scripts (such as Arabic) are shaped
1835-
in their isolated forms when typeset upright.
1836-
1837-
<p>For sideways characters in &lsquo;<a href="#mixed-right"><code
1838-
class=css>mixed-right</code></a>&rsquo; and &lsquo;<a
1839-
href="#upright"><code class=css>upright</code></a>&rsquo; modes, vertical
1840-
typesetting features are not used. However, if the font has features meant
1841-
to be enabled for sideways text that is typeset in vertical lines, those
1842-
features and tables are used.
1843-
1844-
<p>In the &lsquo;<a href="#sideways"><code
1845-
class=css>sideways</code></a>&rsquo;, &lsquo;<a
1846-
href="#sideways-right"><code class=css>sideways-right</code></a>&rsquo;,
1847-
and &lsquo;<a href="#sideways-left"><code
1848-
class=css>sideways-left</code></a>&rsquo; modes, text is typeset using
1849-
horizontal font metrics and the normal set of features used for horizontal
1850-
text runs. Vertical metrics, vertical glyph variations, and any other
1851-
features meant for text typeset in vertical lines are <em>not</em> used.
1852-
1853-
<p class=issue>This section needs additional reworking. Suggestions are
1854-
welcome. <!-- random notes
1825+
<p>When typesetting text in vertical writing modes:
1826+
1827+
<ul>
1828+
<li>Upright characters in &lsquo;<a href="#mixed-right"><code
1829+
class=css>mixed-right</code></a>&rsquo; and &lsquo;<a
1830+
href="#upright"><code class=css>upright</code></a>&rsquo; modes are
1831+
typeset with vertical font metrics. The UA must synthesize vertical font
1832+
metrics for fonts that lack them. (This specification does not define
1833+
heuristics for synthesizing such metrics.) Additionally, font features
1834+
(such as alternate glyphs) intended for use in vertical typesetting must
1835+
be used. (E.g. the OpenType &lsquo;<code class=css>vert</code>&rsquo;
1836+
feature must be enabled.) Furthermore, characters from horizontal cursive
1837+
scripts (such as Arabic) are shaped in their isolated forms when typeset
1838+
upright.
1839+
1840+
<li>Sideways characters in &lsquo;<a href="#mixed-right"><code
1841+
class=css>mixed-right</code></a>&rsquo; and &lsquo;<a
1842+
href="#upright"><code class=css>upright</code></a>&rsquo; modes are
1843+
typeset with horizontal metrics, and vertical typesetting features are
1844+
not used. However, if the font has features meant to be enabled for
1845+
sideways text that is typeset in vertical lines (e.g. to adjust brush
1846+
stroke angles or alignment), those features are used.
1847+
<p class=issue>Propose &lsquo;<code class=property>svrt</code>&rsquo; as
1848+
an OpenType substitution feature that is applied to rotated horizontal
1849+
text in vertical text runs, to handle these cases.
1850+
1851+
<li>All text in &lsquo;<a href="#sideways"><code
1852+
class=css>sideways</code></a>&rsquo;, &lsquo;<a
1853+
href="#sideways-right"><code class=css>sideways-right</code></a>&rsquo;,
1854+
and &lsquo;<a href="#sideways-left"><code
1855+
class=css>sideways-left</code></a>&rsquo; modes is typeset using
1856+
horizontal font metrics and the normal set of features used for
1857+
horizontal text runs. Vertical metrics, vertical glyph variations, and
1858+
any other features meant for text typeset in vertical lines are
1859+
<em>not</em> used.
1860+
</ul>
1861+
1862+
<p class=issue>This section needs additional work. Suggestions are welcome.
1863+
<!-- random notes
18551864
Property to customize text-orientation (and line breaking class) of various
18561865
characters (yes, the name is horrible, we need a better one):
18571866
text-symbolize: latin ||
@@ -3743,10 +3752,6 @@ <h2 class=no-num id=vertical-typesetting-details>Appendix C: Vertical
37433752
responsibility of the font system. They do not determine categorization
37443753
or orientation.
37453754

3746-
<p class=issue>Propose &lsquo;<code class=property>svrt</code>&rsquo; as
3747-
an OpenType substitution feature that is applied to rotated horizontal
3748-
text in vertical text runs, to handle these cases.
3749-
37503755
<div class=note> This category is expected to include:
37513756
<ul>
37523757
<li>All East Asian fullwidth (F) and wide (W) characters except

css3-writing-modes/Overview.src.html

Lines changed: 30 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1288,27 +1288,36 @@ <h3 id="text-orientation">
12881288
<h4 id=vertical-font-features>
12891289
Vertical Typesetting and Font Features</h4>
12901290

1291-
<p>Vertical font metrics
1292-
are used to set upright characters in ''mixed-right'' and ''upright'' modes.
1293-
The UA must synthesize vertical font metrics for fonts that lack them.
1294-
(This specification does not define heuristics for synthesizing such metrics.)
1295-
Additionally, font features (such as alternate glyphs) intended
1296-
for use in vertical typesetting must be used.
1297-
(E.g. the OpenType ''vert'' feature must be enabled.)
1298-
<p>Characters from horizontal shaping scripts (such as Arabic)
1299-
are shaped in their isolated forms when typeset upright.
1300-
<p>For sideways characters in ''mixed-right'' and ''upright'' modes, vertical
1301-
typesetting features are not used.
1302-
However, if the font has features meant to be enabled
1303-
for sideways text that is typeset in vertical lines,
1304-
those features and tables are used.
1305-
<p>In the ''sideways'', ''sideways-right'', and ''sideways-left'' modes,
1306-
text is typeset using horizontal font metrics and the normal set of features
1307-
used for horizontal text runs.
1308-
Vertical metrics, vertical glyph variations, and any other features meant
1309-
for text typeset in vertical lines are <em>not</em> used.
1310-
1311-
<p class=issue>This section needs additional reworking. Suggestions are welcome.
1291+
<p>When typesetting text in vertical writing modes:
1292+
1293+
<ul>
1294+
<li>Upright characters in ''mixed-right'' and ''upright'' modes are
1295+
typeset with vertical font metrics.
1296+
The UA must synthesize vertical font metrics for fonts that lack them.
1297+
(This specification does not define heuristics for synthesizing such metrics.)
1298+
Additionally, font features (such as alternate glyphs) intended
1299+
for use in vertical typesetting must be used.
1300+
(E.g. the OpenType ''vert'' feature must be enabled.)
1301+
Furthermore, characters from horizontal cursive scripts (such as Arabic)
1302+
are shaped in their isolated forms when typeset upright.
1303+
<li>Sideways characters in ''mixed-right'' and ''upright'' modes are
1304+
typeset with horizontal metrics,
1305+
and vertical typesetting features are not used.
1306+
However, if the font has features meant to be enabled
1307+
for sideways text that is typeset in vertical lines
1308+
(e.g. to adjust brush stroke angles or alignment),
1309+
those features are used.
1310+
<p class="issue">Propose 'svrt' as an OpenType substitution feature
1311+
that is applied to rotated horizontal text in vertical text runs,
1312+
to handle these cases.
1313+
<li>All text in ''sideways'', ''sideways-right'', and ''sideways-left'' modes is
1314+
typeset using horizontal font metrics and the normal set of features
1315+
used for horizontal text runs.
1316+
Vertical metrics, vertical glyph variations, and any other features meant
1317+
for text typeset in vertical lines are <em>not</em> used.
1318+
</ul>
1319+
1320+
<p class=issue>This section needs additional work. Suggestions are welcome.
13121321

13131322
<!-- random notes
13141323
Property to customize text-orientation (and line breaking class) of various
@@ -2782,9 +2791,6 @@ <h2 id="vertical-typesetting-details" class="no-num">Appendix C:
27822791
and alignment, that are not fundamental to the character's form,
27832792
are the responsibility of the font system.
27842793
They do not determine categorization or orientation.
2785-
<p class="issue">Propose 'svrt' as an OpenType substitution feature
2786-
that is applied to rotated horizontal text in vertical text runs,
2787-
to handle these cases.
27882794
<div class=note>
27892795
This category is expected to include:
27902796
<ul>

0 commit comments

Comments
 (0)