Skip to content

Commit bd6ffc0

Browse files
author
John Daggett
committed
[css-fonts] revise unicode-range description, add unquoted font face name processing description
1 parent afc5239 commit bd6ffc0

1 file changed

Lines changed: 35 additions & 24 deletions

File tree

css-fonts/Fonts.html

Lines changed: 35 additions & 24 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-22-may-2013>Editor's Draft 22
115+
<h2 class="no-num no-toc" id=editors-draft-23-may-2013>Editor's Draft 23
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-20130522/">http://www.w3.org/TR/2013/ED-css3-fonts-20130522/</a> -->
123+
<!-- <dd><a href="http://www.w3.org/TR/2013/ED-css3-fonts-20130523/">http://www.w3.org/TR/2013/ED-css3-fonts-20130523/</a> -->
124124

125125

126126
<dt>Latest version:
@@ -2327,7 +2327,11 @@ <h3 id=src-desc><span class=secno>4.3 </span>Font reference: the <a
23272327
is a format-specific string that uniquely identifies a single font face
23282328
within a larger family. The syntax for a <a
23292329
href="#font-face-name-value"><var>&lt;font-face-name&gt;</var></a> is a
2330-
unique font face name enclosed by "local(" and ")".
2330+
unique font face name enclosed by "local(" and ")". The name can
2331+
optionally be enclosed in quotes. If unquoted, the unquoted font family
2332+
name processing conventions apply; the name must be a sequence of
2333+
identifiers separated by whitespace which is converted to a string by
2334+
joining the identifiers together separated by a single space.
23312335

23322336
<pre>
23332337
/* regular face of Gentium */
@@ -2338,12 +2342,12 @@ <h3 id=src-desc><span class=secno>4.3 </span>Font reference: the <a
23382342
}
23392343
</pre>
23402344

2341-
<p>The name can optionally be enclosed in quotes. For OpenType and TrueType
2342-
fonts, this string is used to match only the Postscript name or the full
2343-
font name in the name table of locally available fonts. Which type of name
2344-
is used varies by platform and font, so authors should include both of
2345-
these names to assure proper matching across platforms. Platform
2346-
substitutions for a given font name must not be used.
2345+
<p>For OpenType and TrueType fonts, this string is used to match only the
2346+
Postscript name or the full font name in the name table of locally
2347+
available fonts. Which type of name is used varies by platform and font,
2348+
so authors should include both of these names to assure proper matching
2349+
across platforms. Platform substitutions for a given font name must not be
2350+
used.
23472351

23482352
<pre>
23492353
/* bold face of Gentium */
@@ -2561,19 +2565,26 @@ <h3 id=unicode-range-desc><span class=secno>4.5 </span>Character range: the
25612565
href="http://www.w3.org/TR/CSS21/syndata.html#tokenization"><code
25622566
title="UNICODE-RANGE token">UNICODE-RANGE</code></a> token made up of a
25632567
"U+" or "u+" prefix followed by a codepoint range in one of the three
2564-
forms listed below:
2568+
forms listed below. Ranges that do not fit one of the these forms are
2569+
invalid and cause the declaration to be ignored.
25652570

2566-
<ul>
2567-
<li>a single codepoint (e.g. U+416)
2571+
<dl>
2572+
<dt>single codepoint (e.g. U+416)
25682573

2569-
<li>an interval value range defined by two hyphen-separated codepoints
2570-
that indicate the inclusive start and end codepoints of a range (e.g.
2571-
U+400-4ff)
2574+
<dd>a valid Unicode codepoint, represented as one to six hexadecimal
2575+
digits
25722576

2573-
<li>a wildcard value range defined by the set of codepoints implied when
2574-
trailing ‘<code class=css>?</code>’ characters signify ‘<code
2575-
class=css>any digit value</code>’ (e.g. U+4??)
2576-
</ul>
2577+
<dt>interval range (e.g. ‘<code class=css>U+400-4ff</code>’)
2578+
2579+
<dd>represented as two hyphen-separated valid Unicode codepoints
2580+
indicating the inclusive start and end codepoints of a range
2581+
2582+
<dt>wildcard range (e.g. ‘<code class=css>U+4??</code>’)
2583+
2584+
<dd>defined by the set of codepoints implied when trailing ‘<code
2585+
class=css>?</code>’ characters signify ‘<code class=css>any
2586+
hexadeximal digit</code>
2587+
</dl>
25772588

25782589
<p>Individual codepoints are written using hexadecimal values that
25792590
correspond to <a href="http://www.unicode.org/charts/">Unicode character
@@ -2595,11 +2606,11 @@ <h3 id=unicode-range-desc><span class=secno>4.5 </span>Character range: the
25952606
<p>Within the comma-delimited list of Unicode ranges in a ‘<a
25962607
href="#descdef-unicode-range"><code
25972608
class=property>unicode-range</code></a>’ descriptor declaration, ranges
2598-
may overlap. Whitespace before or after commas is ignored. The union of
2599-
these ranges defines the set of codepoints for which the corresponding
2600-
font may be used. User agents must not download or use the font for
2601-
codepoints outside this set. User agents may normalize the list of ranges
2602-
into a list that is different but represents the same set of codepoints.
2609+
may overlap. The union of these ranges defines the set of codepoints for
2610+
which the corresponding font may be used. User agents must not download or
2611+
use the font for codepoints outside this set. User agents may normalize
2612+
the list of ranges into a list that is different but represents the same
2613+
set of codepoints.
26032614

26042615
<p>The associated font may not contain glyphs for the entire set of
26052616
codepoints defined by the ‘<a href="#descdef-unicode-range"><code

0 commit comments

Comments
 (0)