8000 include latest WD · w3c/csswg-drafts@2624667 · GitHub
Skip to content

Commit 2624667

Browse files
author
John Daggett
committed
include latest WD
1 parent 6193228 commit 2624667

1 file changed

Lines changed: 52 additions & 53 deletions

File tree

css3-fonts/Fonts.html

Lines changed: 52 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
"default.css" rather than "../default.css"
1111
-->
1212
<link href="../default.css" rel=stylesheet type="text/css">
13-
<link href="http://www.w3.org/StyleSheets/TR/W3C-ED.css" rel=stylesheet
14-
type="text/css">
1513

1614
<style type="text/css">
1715

@@ -103,6 +101,8 @@
103101
}
104102

105103
</style>
104+
<link href="http://www.w3.org/StyleSheets/TR/W3C-ED.css" rel=stylesheet
105+
type="text/css">
106106

107107
<body>
108108
<div class=head> <!--begin-logo-->
@@ -111,15 +111,15 @@
111111

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

114-
<h2 class="no-num no-toc" id=editors-draft-21-march-2011>Editor's Draft 21
114+
<h2 class="no-num no-toc" id=editors-draft-24-march-2011>Editor's Draft 24
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-20110321">http://www.w3.org/TR/2011/ED-css3-fonts-20110321</a> -->
122+
<!-- <dd><a href="http://www.w3.org/TR/2011/ED-css3-fonts-20110324">http://www.w3.org/TR/2011/ED-css3-fonts-20110324</a> -->
123123

124124

125125
<dt>Latest version:
@@ -134,6 +134,9 @@ <h2 class="no-num no-toc" id=editors-draft-21-march-2011>Editor's Draft 21
134134

135135
<dt>Previous version (CSS3 Fonts):
136136

137+
<dd><a
138+
href="http://www.w3.org/TR/2009/WD-css3-fonts-20110324">http://www.w3.org/TR/2011/WD-css3-fonts-20110324</a>
139+
137140
<dd><a
138141
href="http://www.w3.org/TR/2009/WD-css3-fonts-20090618">http://www.w3.org/TR/2009/WD-css3-fonts-20090618</a>
139142

@@ -828,9 +831,10 @@ <h3 id=font-weight-prop><span class=secno>3.2 </span>Font weight: the <a
828831
<td>see description
829832
</table>
830833

831-
<p>The <a class=noxref href="#font-weight"><span class=property><code
832-
class=property>font-weight</code></span></a> property specifies weight
833-
of glyphs in the font, their degree of blackness or stroke thickness.
834+
<p>The <a class=noxref href="#font-weight-prop"><span
835+
class=property><code class=property>font-weight</code></span></a>
836+
property specifies weight of glyphs in the font, their degree of blackness
837+
or stroke thickness.
834838

835839
<p>Values have the following meanings:
836840

@@ -1051,10 +1055,11 @@ <h3 id=font-stretch-prop><span class=secno>3.3 </span>Font width: the <a
10511055
<td>as specified
10521056
</table>
10531057

1054-
<p>The <a class=noxref href="#font-stretch"><span class=property><code
1055-
class=property>font-stretch</code></span></a> property selects a
1056-
normal, condensed, or expanded face from a font family. Absolute keyword
1057-
values have the following ordering, from narrowest to widest:
1058+
<p>The <a class=noxref href="#font-stretch-prop"><span
1059+
class=property><code class=property>font-stretch</code></span></a>
1060+
property selects a normal, condensed, or expanded face from a font family.
1061+
Absolute keyword values have the following ordering, from narrowest to
1062+
widest:
10581063

10591064
<ul>
10601065
<li>Ultra Condensed
@@ -1138,13 +1143,14 @@ <h3 id=font-style-prop><span class=secno>3.4 </span>Font style: the <a
11381143
<td>as specified
11391144
</table>
11401145

1141-
<p>The <a class=noxref href="#font-style"><span class=property><code
1142-
class=property>font-style</code></span></a> property allows italic or
1143-
oblique faces to be selected. Italic forms are generally cursive in nature
1144-
while oblique faces are typically sloped versions of the regular face.
1145-
Oblique faces can be simulated by artificially sloping the glyphs of the
1146-
regular face. Compare the artificially sloped renderings of Palatino
1147-
<code class=property>a</code>’ and Baskerville ‘<code
1146+
<p>The <a class=noxref href="#font-style-prop"><span
1147+
class=property><code class=property>font-style</code></span></a>
1148+
property allows italic or oblique faces to be selected. Italic forms are
1149+
generally cursive in nature while oblique faces are typically sloped
1150+
versions of the regular face. Oblique faces can be simulated by
1151+
artificially sloping the glyphs of the regular face. Compare the
1152+
artificially sloped renderings of Palatino ‘<code
1153+
class=property>a</code>’ and Baskerville ‘<code
11481154
class=property>N</code>’ in grey with the actual italic versions:
11491155

11501156
<div class=figure><img alt="artificial sloping vs. real italics"
@@ -1374,9 +1380,10 @@ <h3 id=font-size-prop><span class=secno>3.5 </span>Font size: the <a
13741380
certain font sizes.
13751381

13761382
<p>Child elements inherit the computed <a class=noxref
1377-
href="#font-size"><span class=property><code
1383+
href="#font-size-prop"><span class=property><code
13781384
class=property>font-size</code></span></a> value (otherwise, the effect
1379-
of <a class=noxref href="#font-size-adjust"><span class=property><code
1385+
of <a class=noxref href="#font-size-adjust-prop"><span
1386+
class=property><code
13801387
class=property>font-size-adjust</code></span></a> would compound).
13811388

13821389
<div class=example>
@@ -1935,7 +1942,7 @@ <h3 id=font-face-rule><span class=secno>4.1 </span>The @font-face rule</h3>
19351942
<pre>
19361943
@font-face {
19371944
font-family: Gentium;
1938-
src: url(http://site/fonts/Gentium.ttf);
1945+
src: url(http://example.com/fonts/Gentium.ttf);
19391946
}
19401947

19411948
p { font-family: Gentium, serif; }
@@ -1954,7 +1961,7 @@ <h3 id=font-face-rule><span class=secno>4.1 </span>The @font-face rule</h3>
19541961
<p>Downloaded fonts are only available to documents that reference them,
19551962
the process of activating these fonts should not make them available to
19561963
other applications or to documents that don't directly link to the same
1957-
font. User agent implementors might consider it convenient to use
1964+
font. User agent implementers might consider it convenient to use
19581965
downloaded fonts when rendering characters in other documents for which no
19591966
other available font exists as part of the system font fallback procedure.
19601967
This would cause a security leak since the contents of one page would be
@@ -2121,7 +2128,7 @@ <h3 id=src-desc><span class=secno>4.3 </span>Font reference: the <a
21212128
format hints "truetype" and "opentype" must be considered as synonymous; a
21222129
format hint of "opentype" does not imply that the font contains Postscript
21232130
CFF style glyph data or that it contains OpenType layout information (see
2124-
Appendix A for more background on this).
2131+
Appendix B for more background on this).
21252132

21262133
<p>When authors would prefer to use a locally available copy of a given
21272134
font and download it if it's not, local() can be used. The locally
@@ -2164,7 +2171,7 @@ <h3 id=src-desc><span class=secno>4.3 </span>Font reference: the <a
21642171
the Postscript name is found in the font's <a
21652172
href="http://www.microsoft.com/typography/otspec/name.htm">name table</a>,
21662173
in the name record with nameID = 6 (see <a href="#OPENTYPE"
2167-
rel=biblioentry>[OPENTYPE]<!--{{OPENTYPE}}--></a> for more details). The
2174+
rel=biblioentry>[OPENTYPE]<!--{{!OPENTYPE}}--></a> for more details). The
21682175
Postscript name is the commonly used key for all fonts on OSX and for
21692176
Postscript CFF fonts under Windows. The full font name (nameID = 4) is
21702177
used as a unique key for fonts with TrueType glyphs on Windows.
@@ -2810,8 +2817,6 @@ <h3 id=font-matching-changes><span class=secno>5.3 </span>Font matching
28102817
These changes were made to better reflect actual font matching behavior
28112818
across user agent implementations.
28122819

2813-
<ul></ul>
2814-
28152820
<p>Differences compared to the font matching algorithm in CSS 2.1:
28162821

28172822
<ul>
@@ -3215,7 +3220,7 @@ <h3 id=vertical-position-prop><span class=secno>6.4 </span>Subscript,
32153220
metrics specified in the selected font's <a
32163221
href="http://www.microsoft.com/typography/otspec/os2.htm#subxs">OS/2
32173222
table</a> <a href="#OPENTYPE"
3218-
rel=biblioentry>[OPENTYPE]<!--{{OPENTYPE}}--></a>.</p>
3223+
rel=biblioentry>[OPENTYPE]<!--{{!OPENTYPE}}--></a>.</p>
32193224
<!-- prop: font-variant-ligatures -->
32203225

32213226
<h3 id=font-variant-ligatures-prop><span class=secno>6.5 </span>Ligatures:
@@ -3672,6 +3677,18 @@ <h3 id=font-variant-alternates-prop><span class=secno>6.8 </span>Alternates
36723677
in addition to the default glyph for that character. This property
36733678
provides control over the selection of these alternate glyphs.
36743679

3680+
<p>In cases where multiple alternates are possible, authors define a <a
3681+
href="#ltfeature-value-namegt"><code>&lt;feature-value-name&gt;& 133E lt;/code></a>
3682+
using the <code>@font-feature-values</code> rule described below to
3683+
indicate the specific alternate to be used. The nature of these alternates
3684+
is font specific, so the rule defines values for a specific font family or
3685+
set of families. When a particular value has not been defined for a given
3686+
family, the named value is treated as if the feature had omitted from the
3687+
style rule. If a given value is outside the range supported by a given
3688+
font, the value is ignored. These values never apply to generic font
3689+
families, nor to families selected as part of system font fallback. Values
3690+
that behave this way are marked as <em>font specific</em>.
3691+
36753692
<p>Individual values have the following meanings:
36763693

36773694
<dl>
@@ -3778,18 +3795,6 @@ <h3 id=font-variant-alternates-prop><span class=secno>6.8 </span>Alternates
37783795
font scaling.
37793796
</dl>
37803797

3781-
<p>In cases where multiple alternates are possible, authors define a <a
3782-
href="#ltfeature-value-namegt"><code>&lt;feature-value-name&gt;</code></a>
3783-
using the <code>@font-feature-values</code> rule described below to
3784-
indicate the specific alternate to be used. The nature of these alternates
3785-
is font specific, so the rule is defined per font family. When a
3786-
particular value has not been defined for a given family, the named value
3787-
is treated as if the feature had omitted from the style rule. If a given
3788-
value is outside the range supported by a given font, the value is
3789-
ignored. These values never apply to generic font families, nor to
3790-
families selected as part of system font fallback. Values that behave this
3791-
way are marked as <em>font specific</em>.
3792-
37933798
<div class=example>
37943799
<p>The example below uses stylistic sets and swashes for section titles
37953800
but not for the main title.</p>
@@ -4476,7 +4481,7 @@ <h2 id=rendering-considerations><span class=secno>7 </span>Resolving font
44764481

44774482
<pre>@font-face {
44784483
font-family: MainText;
4479-
src: url(http://site/font.ttf);
4484+
src: url(http://example.com/font.ttf);
44804485
font-variant: oldstyle-nums proportional-nums styleset(1,3);
44814486
}
44824487

@@ -4585,10 +4590,10 @@ <h2 class=no-num id=same-origin-restriction>Appendix A: Same-origin
45854590
<pre>
45864591
/* same origin (i.e. domain, protocol, port match document) */
45874592
src: url(fonts/simple.ttf);
4588-
src: url(http://fonts/simple.ttf);
4593+
src: url(//fonts/simple.ttf);
45894594

45904595
/* cross origin, different protocol */
4591-
src: url(https://fonts/simple.ttf);
4596+
src: url(https://example.com/fonts/simple.ttf);
45924597

45934598
/* cross origin, different domain */
45944599
src: url(http://another.example.com/fonts/simple.ttf);
@@ -4602,7 +4607,7 @@ <h2 class=no-num id=same-origin-restriction>Appendix A: Same-origin
46024607
explicitly allow cross-site downloading of font data using the
46034608
<code>Access-Control-Allow-Origin</code> HTTP header.
46044609

4605-
<p class=issue>Some implementors feel a same-origin restriction should be
4610+
<p class=issue>Some implementers feel a same-origin restriction should be
46064611
the default for all new resource types while others feel strongly that an
46074612
opt-in strategy usuable for all resource types would be a better mechanism
46084613
and that the default should always be to allow cross-origin linking for
@@ -4621,7 +4626,7 @@ <h2 class=no-num id=platform-props-to-css>Appendix B: Mapping platform font
46214626
font formats used; they can be used to specify bitmap fonts, Type1 fonts,
46224627
SVG fonts in addition to the common TrueType and OpenType fonts. But there
46234628
are facets of the TrueType and OpenType formats that often cause confusion
4624-
for authors and present challenges to implementors on different platforms.
4629+
for authors and present challenges to implementers on different platforms.
46254630

46264631

46274632
<p>Originally developed at Apple, TrueType was designed as an outline font
@@ -4681,6 +4686,9 @@ <h2 class=no-num id=platform-props-to-css>Appendix B: Mapping platform font
46814686
Mac OS X. Apple has indicated it intends to support complex script
46824687
rendering using OpenType font features in the future.
46834688

4689+
<p class=issue>Need to define normatively how WWS names are handled across
4690+
platforms.
4691+
46844692
<h2 class=no-num id=font-licensing>Appendix C: Font licensing issues</h2>
46854693

46864694
<p><em>This appendix is informative only.</em>
@@ -4933,15 +4941,6 @@ <h3 class=no-num id=other-references>Other References</h3>
49334941
ISBN 1-932026-01-0.</dd>
49344942
<!---->
49354943

4936-
<dt id=OPENTYPE>[OPENTYPE]
4937-
4938-
<dd><a
4939-
href="http://www.microsoft.com/typography/otspec/default.htm"><cite>OpenType
4940-
specification.</cite></a> Microsoft. URL: <a
4941-
href="http://www.microsoft.com/typography/otspec/default.htm">http://www.microsoft.com/typography/otspec/default.htm</a>
4942-
</dd>
4943-
<!---->
4944-
49454944
<dt id=OPENTYPE-FONT-GUIDE>[OPENTYPE-FONT-GUIDE]
49464945

49474946
<dd><a

0 commit comments

Comments
 (0)