Skip to content

Commit 45dd96d

Browse files
garretriegersvgeesus
authored andcommitted
Add note about using unicode-range + IFT.
Fixes #210
1 parent 8eb9984 commit 45dd96d

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

Overview.bs

+14
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,20 @@ only be loaded by a user agent which supports incremental font transfer.
245245
</pre>
246246
</div>
247247

248+
<div class=example>
249+
<pre>
250+
@font-face {
251+
font-family: "MyCoolWebFont";
252+
src: url("MyCoolWebFont.otf") tech(incremental);
253+
unicode-range: U+0000-00FF;
254+
}
255+
</pre>
256+
</div>
257+
258+
As shown in the second example, [[css-fonts-4#unicode-range-desc|unicode-range]] can be used in conjuction with an IFT font. The
259+
unicode ranges should be set to match the coverage of the fully extended font. This will allow clients to avoid trying to load the IFT font
260+
if the font does not support any code points which are needed.
261+
248262
Note: Each individual <code>@font-face</code> block may or may not opt-in to IFT. This is due to the
249263
variety of ways fonts are used on web pages. Authors have control over which fonts they want to use
250264
this technology with, and which they do not.

Overview.html

+12
Original file line numberDiff line numberDiff line change
@@ -1012,6 +1012,18 @@ <h2 class="heading settled" data-level="2" id="opt-in"><span class="secno">2. </
10121012
}
10131013
</pre>
10141014
</div>
1015+
<div class="example" id="example-04425b82">
1016+
<a class="self-link" href="#example-04425b82"></a>
1017+
<pre>@font-face {
1018+
font-family: "MyCoolWebFont";
1019+
src: url("MyCoolWebFont.otf") tech(incremental);
1020+
unicode-range: U+0000-00FF;
1021+
}
1022+
</pre>
1023+
</div>
1024+
<p>As shown in the second example, <a href="https://www.w3.org/TR/css-fonts-4/#unicode-range-desc">unicode-range</a> can be used in conjuction with an IFT font. The
1025+
unicode ranges should be set to match the coverage of the fully extended font. This will allow clients to avoid trying to load the IFT font
1026+
if the font does not support any code points which are needed.</p>
10151027
<p class="note" role="note"><span class="marker">Note:</span> Each individual <code>@font-face</code> block may or may not opt-in to IFT. This is due to the
10161028
variety of ways fonts are used on web pages. Authors have control over which fonts they want to use
10171029
this technology with, and which they do not.</p>

0 commit comments

Comments
 (0)