Skip to content

Commit 426dcef

Browse files
author
John Daggett
committed
rework font-synthesis
1 parent 6352634 commit 426dcef

1 file changed

Lines changed: 35 additions & 98 deletions

File tree

css3-fonts/Fonts.html

Lines changed: 35 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,15 @@
111111

112112
<h1>CSS Fonts Module Level 3</h1>
113113

114-
<h2 class="no-num no-toc" id=editors-draft-7-march-2011>Editor's Draft 7
114+
<h2 class="no-num no-toc" id=editors-draft-8-march-2011>Editor's Draft 8
115115
March 2011</h2>
116116

117117
<dl id=authors>
118118
<dt>This version:
119119

120120
<dd><a
121121
href="http://dev.w3.org/csswg/css3-fonts/">http://dev.w3.org/csswg/css3-fonts/</a>
122-
<!-- <dd><a href="http://www.w3.org/TR/2011/ED-css3-fonts-20110307">http://www.w3.org/TR/2011/ED-css3-fonts-20110307</a> -->
122+
<!-- <dd><a href="http://www.w3.org/TR/2011/ED-css3-fonts-20110308">http://www.w3.org/TR/2011/ED-css3-fonts-20110308</a> -->
123123

124124

125125
<dt>Latest version:
@@ -258,9 +258,8 @@ <h2 class="no-num no-toc" id=contents>Table of contents</h2>
258258
<li><a href="#font-prop"><span class=secno>3.7 </span>Shorthand font
259259
property: the font property</a>
260260

261-
<li><a href="#font-synthetic-prop"><span class=secno>3.8
262-
</span>Controlling synthetic faces: the font-weight-synthetic and
263-
font-style-synthetic properties</a>
261+
<li><a href="#font-synthesis-prop"><span class=secno>3.8
262+
</span>Controlling synthetic faces: the font-synthesis property</a>
264263
</ul>
265264

266265
<li><a href="#font-resources"><span class=secno>4 </span>Font
@@ -908,10 +907,10 @@ <h3 id=font-weight-prop><span class=secno>3.2 </span>Font weight: the <a
908907
faces
909908
</div>
910909

911-
<p>Although not well-loved by typographers, bold faces are often
912-
synthesized by user agents for faces that lack actual bold faces. For the
913-
purposes of style matching, these faces must be treated as if they exist
914-
within the family.
910+
<p>Although the practice is not well-loved by typographers, bold faces are
911+
often synthesized by user agents for faces that lack actual bold faces.
912+
For the purposes of style matching, these faces must be treated as if they
913+
exist within the family.
915914

916915
<p>Values of ‘<code class=property>bolder</code>’ and ‘<code
917916
class=property>lighter</code>’ indicate values relative to the weight of
@@ -1818,72 +1817,28 @@ <h3 id=font-prop><span class=secno>3.7 </span>Shorthand font property: the
18181817
}
18191818
</pre>
18201819
</div>
1821-
<!-- prop: font-weight-synthetic, font-style-synthetic -->
1820+
<!-- prop: font-synthesis -->
18221821

1823-
<h3 id=font-synthetic-prop><span class=secno>3.8 </span>Controlling
1824-
synthetic faces: the <a
1825-
href="#propdef-font-weight-synthetic">font-weight-synthetic</a> and <a
1826-
href="#propdef-font-style-synthetic">font-style-synthetic</a> properties</h3>
1827-
1828-
<table class=propdef id=namefont-weight-syntheticvalueauto-none->
1829-
<tbody>
1830-
<tr>
1831-
<td>Name:
1832-
1833-
<td><dfn id=propdef-font-weight-synthetic>font-weight-synthetic</dfn>
1834-
1835-
<tr>
1836-
<td>Value:
1837-
1838-
<td>auto | none | inherit
1839-
1840-
<tr>
1841-
<td>Initial:
1842-
1843-
<td>auto
1844-
1845-
<tr>
1846-
<td>Applies to:
1847-
1848-
<td>all elements
1849-
1850-
<tr>
1851-
<td>Inherited:
1852-
1853-
<td>yes
1854-
1855-
<tr>
1856-
<td>Percentages:
1857-
1858-
<td>N/A
1859-
1860-
<tr>
1861-
<td>Media:
1862-
1863-
<td>visual
1864-
1865-
<tr>
1866-
<td>Computed value:
1867-
1868-
<td>as specified
1869-
</table>
1822+
<h3 id=font-synthesis-prop><span class=secno>3.8 </span>Controlling
1823+
synthetic faces: the <a href="#propdef-font-synthesis">font-synthesis</a>
1824+
property</h3>
18701825

1871-
<table class=propdef id=namefont-style-syntheticvalueauto-none-i>
1826+
<table class=propdef id=namefont-synthesisvaluenone-weight-style>
18721827
<tbody>
18731828
<tr>
18741829
<td>Name:
18751830

1876-
<td><dfn id=propdef-font-style-synthetic>font-style-synthetic</dfn>
1831+
<td><dfn id=propdef-font-synthesis>font-synthesis</dfn>
18771832

18781833
<tr>
18791834
<td>Value:
18801835

1881-
<td>auto | none | inherit
1836+
<td>none | [ weight || style ]
18821837

18831838
<tr>
18841839
<td>Initial:
18851840

1886-
<td>auto
1841+
<td>weight style
18871842

18881843
<tr>
18891844
<td>Applies to:
@@ -1911,17 +1866,18 @@ <h3 id=font-synthetic-prop><span class=secno>3.8 </span>Controlling
19111866
<td>as specified
19121867
</table>
19131868

1914-
<p>These properties control whether user agents are allowed to synthetize
1915-
bold or synthetic oblique font faces when a font family lacks bold or
1916-
italic faces. For each of these properties the default value of ‘<code
1917-
class=property>auto</code>’ allows user agents to use synthetic versions
1918-
of font faces while a value of ‘<code class=property>none</code>
1919-
disallows the use of synthetic versions.
1869+
<p>This property controls whether user agents are allowed to synthesize
1870+
bold or oblique font faces when a font family lacks bold or italic faces.
1871+
If ‘<code class=property>weight</code>’ is not specified, user agents
1872+
must not synthesize bold faces and if ‘<code
1873+
class=property>style</code>’ is not specified user agents must not
1874+
synthesize italic faces. A value of ‘<code class=property>none</code>
1875+
disallows all synthetic faces.
19201876

19211877
<div class=example>
19221878
<p>The style rule below diables the use of synthetically obliqued Arabic:</p>
19231879

1924-
<pre>*:lang(ar) { font-style-synthetic: none; }
1880+
<pre>*:lang(ar) { font-synthesis: none; }
19251881
</pre>
19261882
</div>
19271883

@@ -3143,8 +3099,8 @@ <h3 id=vertical-position-prop><span class=secno>6.4 </span>Subscript,
31433099
subscripts and superscripts, when the value is either ‘<code
31443100
class=property>subscript</code>’ or ‘<code
31453101
class=property>superscript</code>’, the property acts as a shorthand and
3146-
resets the value of the font-size and vertical-align properties to
3147-
<code class=property>inherit</code>. Other than this, the property
3102+
resets the value of font-size to ‘<code class=property>inherit</code>
3103+
and vertical-align to its initial value. Other than this, the property
31483104
does not affect the height of the line box.
31493105

31503106
<div class=example>
@@ -4489,7 +4445,7 @@ <h2 id=rendering-considerations><span class=secno>7 </span>Resolving font
44894445
font-family: BodyText;
44904446
src: local("HiraMaruPro-W4");
44914447
font-variant: proportional-width;
4492-
font-feature-settings: "ital=1"; /* Latin italics within CJK text feature */
4448+
font-feature-settings: ital; /* Latin italics within CJK text feature */
44934449
}
44944450

44954451
body { font-family: BodyText, serif; }
@@ -4518,7 +4474,7 @@ <h2 id=rendering-considerations><span class=secno>7 </span>Resolving font
45184474
<p>Adding an additional style rule with the @font-face above:</p>
45194475

45204476
<pre>body { font-family: main, Helvetica; }
4521-
span { font-feature-settings: "dlig=1"; }
4477+
span { font-feature-settings: dlig; }
45224478
span.special { font-variant-ligatures: no-additional-ligatures; }
45234479
</pre>
45244480

@@ -4535,7 +4491,8 @@ <h2 id=rendering-considerations><span class=secno>7 </span>Resolving font
45354491
the OpenType <code>dlig</code> feature, because the ‘<a
45364492
href="#propdef-font-feature-settings"><code
45374493
class=property>font-feature-settings</code></a>’ is resolved after
4538-
that, the "dlig=1" value reenables additional ligatures.</p>
4494+
that, the ‘<code class=property>dlig</code>’ value reenables
4495+
additional ligatures.</p>
45394496
</div>
45404497
<!-- simple example of using both font-variant subproperty and descriptor value -->
45414498
<!-- example showing conflicting values and how they are resolved -->
@@ -5122,8 +5079,8 @@ <h2 class=no-num id=index>Index</h2>
51225079
title=font-style><strong>4.4</strong></a>, <a href="#propdef-font-style"
51235080
title=font-style><strong>3.4</strong></a>
51245081

5125-
<li>font-style-synthetic, <a href="#propdef-font-style-synthetic"
5126-
title=font-style-synthetic><strong>3.8</strong></a>
5082+
<li>font-synthesis, <a href="#propdef-font-synthesis"
5083+
title=font-synthesis><strong>3.8</strong></a>
51275084

51285085
<li>font-variant, <a href="#descdef-font-variant"
51295086
title=font-variant><strong>4.6</strong></a>, <a
@@ -5149,9 +5106,6 @@ <h2 class=no-num id=index>Index</h2>
51495106
title=font-weight><strong>4.4</strong></a>, <a
51505107
href="#propdef-font-weight" title=font-weight><strong>3.2</strong></a>
51515108

5152-
<li>font-weight-synthetic, <a href="#propdef-font-weight-synthetic"
5153-
title=font-weight-synthetic><strong>3.8</strong></a>
5154-
51555109
<li>full-width, <a href="#full-width"
51565110
title=full-width><strong>6.10</strong></a>
51575111

@@ -5430,12 +5384,11 @@ <h2 class=no-num id=property-index>Property index</h2>
54305384
<td>visual
54315385

54325386
<tr valign=baseline>
5433-
<td><a class=property
5434-
href="#propdef-font-style-synthetic">font-style-synthetic</a>
5387+
<td><a class=property href="#propdef-font-synthesis">font-synthesis</a>
54355388

5436-
<td>auto | none | inherit
5389+
<td>none | [ weight || style ]
54375390

5438-
<td>auto
5391+
<td>weight style
54395392

54405393
<td>all elements
54415394

@@ -5577,22 +5530,6 @@ <h2 class=no-num id=property-index>Property index</h2>
55775530

55785531
<td>visual
55795532

5580-
<tr valign=baseline>
5581-
<td><a class=property
5582-
href="#propdef-font-weight-synthetic">font-weight-synthetic</a>
5583-
5584-
<td>auto | none | inherit
5585-
5586-
<td>auto
5587-
5588-
<td>all elements
5589-
5590-
<td>yes
5591-
5592-
<td>N/A
5593-
5594-
<td>visual
5595-
55965533
<tr valign=baseline>
55975534
<td><a class=property
55985535
href="#propdef-vertical-position">vertical-position</a>

0 commit comments

Comments
 (0)