Skip to content

Commit f4bd9a2

Browse files
author
John Daggett
committed
[css-fonts] fixes based on comments
1 parent ed9087b commit f4bd9a2

1 file changed

Lines changed: 38 additions & 29 deletions

File tree

css-fonts/Fonts.html

Lines changed: 38 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,15 @@
112112

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

115-
<h2 class="no-num no-toc" id=editors-draft-24-may-2013>Editor's Draft 24
115+
<h2 class="no-num no-toc" id=editors-draft-29-may-2013>Editor's Draft 29
116116
May 2013</h2>
117117

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

121121
<dd><a
122122
href="http://dev.w3.org/csswg/css-fonts/">http://dev.w3.org/csswg/css-fonts/</a>
123-
<!-- <dd><a href="http://www.w3.org/TR/2013/ED-css3-fonts-20130524/">http://www.w3.org/TR/2013/ED-css3-fonts-20130524/</a> -->
123+
<!-- <dd><a href="http://www.w3.org/TR/2013/ED-css3-fonts-20130529/">http://www.w3.org/TR/2013/ED-css3-fonts-20130529/</a> -->
124124

125125

126126
<dt>Latest version:
@@ -713,7 +713,8 @@ <h3 id=font-family-prop><span class=secno>3.1 </span>Font family: the <a
713713
alternative for improved robustness.
714714
</dl>
715715

716-
<p>Font family names must either be given quoted as <a
716+
<p>Font family names other than generic families must either be given
717+
quoted as <a
717718
href="//www.w3.org/TR/CSS21/syndata.html#strings">strings,</a> or unquoted
718719
as a sequence of one or more <a
719720
href="//www.w3.org/TR/CSS21/syndata.html#value-def-identifier">identifiers.</a>
@@ -1488,8 +1489,8 @@ <h3 id=font-size-prop><span class=secno>3.5 </span>Font size: the <a
14881489

14891490
<p class=note><em><strong>Note 1.</strong> To preserve readability, an UA
14901491
applying these guidelines should nevertheless avoid creating font-size
1491-
resulting in less than 9 device pixels per EM unit on a computer display
1492-
.</em>
1492+
resulting in less than 9 device pixels per EM unit on a computer
1493+
display.</em>
14931494

14941495
<p class=note><em><strong>Note 2.</strong> In CSS1, the suggested scaling
14951496
factor between adjacent indexes was 1.5 which user experience proved to be
@@ -2218,13 +2219,14 @@ <h3 id=src-desc><span class=secno>4.3 </span>Font reference: the <a
22182219

22192220
<p>This descriptor specifies the resource containing font data. It is
22202221
required for the <code>@font-face</code> rule to be valid. Its value is a
2221-
prioritized, comma-separated list of external references or locally
2222-
installed font face names. When a font is needed the user agent iterates
2223-
over the set of references listed, using the first one it can successfully
2224-
activate. Fonts containing invalid data or local font faces that are not
2225-
found are ignored and the user agent loads the next font in the list.
2226-
2227-
<p>As with other URLs in CSS, the URL may be partial, in which case it is
2222+
prioritized, comma-separated list of external references or
2223+
locally-installed font face names. When a font is needed the user agent
2224+
iterates over the set of references listed, using the first one it can
2225+
successfully activate. Fonts containing invalid data or local font faces
2226+
that are not found are ignored and the user agent loads the next font in
2227+
the list.
2228+
2229+
<p>As with other URLs in CSS, the URL may be relative, in which case it is
22282230
resolved relative to the location of the style sheet containing the <span
22292231
class=index-inst id=font-face0
22302232
title="@font-face"><code>@font-face</code></span> rule. In the case of SVG
@@ -2324,8 +2326,8 @@ <h3 id=src-desc><span class=secno>4.3 </span>Font reference: the <a
23242326
font and download it if it's not, <code>local()</code> can be used. The
23252327
locally-installed <dfn
23262328
id=font-face-name-value><var>&lt;font-face-name&gt;</var></dfn> argument
2327-
is a format-specific string that uniquely identifies a single font face
2328-
within a larger family. The syntax for a <a
2329+
to <code>local()</code> is a format-specific string that uniquely
2330+
identifies a single font face within a larger family. The syntax for a <a
23292331
href="#font-face-name-value"><var>&lt;font-face-name&gt;</var></a> is a
23302332
unique font face name enclosed by "local(" and ")". The name can
23312333
optionally be enclosed in quotes. If unquoted, the unquoted font family
@@ -2528,8 +2530,8 @@ <h3 id=font-prop-desc><span class=secno>4.4 </span>Font property
25282530
style implied by the underlying font data. This allows authors to combine
25292531
faces in flexible combinations, even in situations where the original font
25302532
data was arranged differently. User agents that implement synthetic
2531-
bolding and obliqueing must only apply synthetic styling in cases where
2532-
the font descriptors imply this is needed, rather than based on the style
2533+
bolding and obliquing must only apply synthetic styling in cases where the
2534+
font descriptors imply this is needed, rather than based on the style
25332535
attributes implied by the font data.
25342536

25352537
<h3 id=unicode-range-desc><span class=secno>4.5 </span>Character range: the
@@ -2598,7 +2600,7 @@ <h3 id=unicode-range-desc><span class=secno>4.5 </span>Character range: the
25982600
digit (e.g. "U+0???" = "U+0000-0FFF"). Wildcard ranges that extend beyond
25992601
the range of valid Unicode codepoints are invalid. Because of this, the
26002602
maximum number of trailing ‘<code class=css>?</code>’ wildcard
2601-
characters is four, even though the <a
2603+
characters is five, even though the <a
26022604
href="http://www.w3.org/TR/CSS21/syndata.html#tokenization"><code
26032605
title="UNICODE-RANGE token">UNICODE-RANGE</code></a> token accepts six.
26042606

@@ -2611,7 +2613,7 @@ <h3 id=unicode-range-desc><span class=secno>4.5 </span>Character range: the
26112613
the list of ranges into a list that is different but represents the same
26122614
set of codepoints.
26132615

2614-
<p>The associated font may not contain glyphs for the entire set of
2616+
<p>The associated font might not contain glyphs for the entire set of
26152617
codepoints defined by the ‘<a href="#descdef-unicode-range"><code
26162618
class=property>unicode-range</code></a>’ descriptor. When the font is
26172619
used the effective <a href="#character-map"><em>character map</em></a> is
@@ -2878,7 +2880,7 @@ <h3 id=font-face-loading><span class=secno>4.8 </span>Font loading
28782880
guidelines</h3>
28792881

28802882
<p>The <code>@font-face</code> rule is designed to allow lazy loading of
2881-
fonts, fonts are only downloaded when needed for use within a document. A
2883+
font resources that are only downloaded when used within a document. A
28822884
stylesheet can include <code>@font-face</code> rules for a library of
28832885
fonts of which only a select set are used; user agents must only download
28842886
those fonts that are referred to within the style rules applicable to a
@@ -3021,15 +3023,15 @@ <h3 id=font-family-casing><span class=secno>5.1 </span>Case sensitivity of
30213023
normalization.
30223024

30233025
<p class=note> For authors this means that font family names are matched
3024-
case insensitively, whether or not those names exist in a platform font or
3025-
in the <code>@font-face</code> rules contained in a stylesheet. Authors
3026-
should take care to ensure that names use a character sequence consistent
3027-
with the actual font family name, particularly when using combining
3028-
characters such as diacritical marks. For example, a family name that
3029-
contains an uppercase A (U+0041) followed by a combining ring (U+030A)
3030-
will <strong>not</strong> match a name that looks identical but which uses
3031-
the precomposed lowercase a-ring character (U+00E5) instead of the
3032-
combining sequence.
3026+
case insensitively, whether those names exist in a platform font or in the
3027+
<code>@font-face</code> rules contained in a stylesheet. Authors should
3028+
take care to ensure that names use a character sequence consistent with
3029+
the actual font family name, particularly when using combining characters
3030+
such as diacritical marks. For example, a family name that contains an
3031+
uppercase A (U+0041) followed by a combining ring (U+030A) will
3032+
<strong>not</strong> match a name that looks identical but which uses the
3033+
precomposed lowercase a-ring character (U+00E5) instead of the combining
3034+
sequence.
30333035

30343036
<h3 id=font-style-matching><span class=secno>5.2 </span>Matching font
30353037
styles</h3>
@@ -3489,7 +3491,7 @@ <h3 id=font-kerning-prop><span class=secno>6.3 </span>Kerning: the <a
34893491
User agents must also support fonts that only support kerning via data
34903492
contained in a ‘<code class=property>kern</code>’ font table, as
34913493
detailed in the OpenType specification. Authors may prefer to disable
3492-
kerning in situations where performance is more important that precise
3494+
kerning in situations where performance is more important than precise
34933495
appearance. If the ‘<code class=property>letter-spacing</code>
34943496
property is defined, kerning adjustments are considered part of the
34953497
default spacing, letter spacing adjustments are made after kerning has
@@ -5049,6 +5051,13 @@ <h3 id=font-feature-settings-prop><span class=secno>6.12 </span>Low-level
50495051
font-feature-settings: dlig; /* invalid, tag must be a string */
50505052
</pre>
50515053

5054+
<p>When values greater than the range supported by the font are specified,
5055+
the behavior is explicitly undefined. For boolean features, in general
5056+
these will enable the feature. For non-boolean features, out of range
5057+
values will in general be equivalent to a 0 value. However, in both cases
5058+
the exact behavior will depend upon the way the font is designed
5059+
(specifically, which type of lookup is used to define the feature).
5060+
50525061
<p>Authors should generally use ‘<a href="#propdef-font-variant"><code
50535062
class=property>font-variant</code></a>’ and its related subproperties
50545063
whenever possible and only use this property for special cases where its

0 commit comments

Comments
 (0)