Skip to content

Commit d4e0597

Browse files
committed
Fix #2205 by referencing RFC8081 for collection fragment syntax
1 parent e5dda86 commit d4e0597

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

css-fonts-3/Fonts.src.html

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1618,15 +1618,15 @@ <h3 id="src-desc">Font reference: the <a href="#descdef-src">src</a> descriptor<
16181618
a reference to the first defined font is implied. Similarly, font
16191619
container formats that can contain more than one font must load one
16201620
and only one of the fonts for a given <code>@font-face</code> rule. Fragment
1621-
identifiers are used to indicate which font to load. If a container
1622-
format lacks a defined fragment identifier scheme, implementations
1623-
should use a simple 1-based indexing scheme (e.g. "font-collection#1"
1624-
for the first font, "font-collection#2" for the second font).</p>
1621+
identifiers are used to indicate which font to load; these use the PostScript
1622+
name of the font as defined in [[!RFC8081]]. </p>
16251623

16261624
<pre>
1627-
src: url(fonts/simple.woff); /* load simple.woff relative to stylesheet location */
1628-
src: url(/fonts/simple.woff); /* load simple.woff from absolute location */
1629-
src: url(fonts.svg#simple); /* load SVG font with id 'simple' */
1625+
src: url(fonts/simple.woff); /* load simple.woff relative to stylesheet location */
1626+
src: url(/fonts/simple.woff); /* load simple.woff from absolute location */
1627+
src: url(fonts/coll.otc#foo); /* load font foo from collection coll.otc
1628+
src: url(fonts/coll.woff2#foo); /* load font foo from woff2 collection coll.woff2
1629+
src: url(fonts.svg#simple); /* load SVG font with id 'simple' */
16301630
</pre>
16311631

16321632
<p>External references consist of a URL, followed by an optional hint
@@ -1660,9 +1660,14 @@ <h3 id="src-desc">Font reference: the <a href="#descdef-src">src</a> descriptor<
16601660
<tbody>
16611661
<tr>
16621662
<th>"woff"</th>
1663-
<td><a href="https://www.w3.org/TR/WOFF/">WOFF (Web Open Font Format)</a></td>
1663+
<td><a href="https://www.w3.org/TR/WOFF/">WOFF 1.0 (Web Open Font Format)</a></td>
16641664
<td>.woff</td>
16651665
</tr>
1666+
<tr>
1667+
<th>"woff2"</th>
1668+
<td><a href="https://www.w3.org/TR/WOFF2/">WOFF 2.0 (Web Open Font Format)</a></td>
1669+
<td>.woff2</td>
1670+
</tr>
16661671
<tr>
16671672
<th>"truetype"</th>
16681673
<td><a href="https://www.microsoft.com/typography/otspec/default.htm">TrueType</a></td>
@@ -2719,7 +2724,7 @@ <h2 id="font-rend-props">Font Feature Properties</h2>
27192724
stylistic font features.</p>
27202725

27212726
<h3 id="glyph-selection-positioning">Glyph selection and positioning</h3>
2722-
2727+
27232728
<p>This section is non-normative</p>
27242729

27252730
<p>Simple fonts used for displaying Latin text use a very basic

0 commit comments

Comments
 (0)