Skip to content

Commit

Permalink
[css-fonts-4][css-fonts-5] Update to current incremental keywords, fix
Browse files Browse the repository at this point in the history
  • Loading branch information
svgeesus committed Mar 1, 2023
1 parent 1b994ae commit a951f1f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
17 changes: 11 additions & 6 deletions css-fonts-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2338,7 +2338,8 @@ Then each component value is parsed according to this grammar:

<pre class="prod"><dfn id="font-tech-values">&lt;font-tech&gt;</dfn>
= [<<font-features-tech>> | <<color-font-tech>>
| variations | palettes | incremental ]</pre>
| variations | palettes |
incremental-patch | incremental-range | incremental-auto ]</pre>

<pre class="prod"><dfn id="font-features-tech-values">&lt;font-features-tech&gt;</dfn>
= [features-opentype | features-aat | features-graphite]</pre>
Expand Down Expand Up @@ -2401,7 +2402,7 @@ or font format.
for optimal performance.
Then,
for incremental transfer using the
<a href="https://www.w3.org/TR/2020/NOTE-PFE-evaluation-20201015/#range-request">range-request method</a>,
<a href="https://w3c.github.io/IFT/Overview.html#range-request-incxfer">range-request method</a>,
the raw uncompressed OpenType font is provided
so that the client
can perform byte range requests.
Expand All @@ -2410,7 +2411,7 @@ or font format.
@font-face {
font-family: "MyIncrementallyLoadedWebFont";
src: url("FallbackURLForBrowsersWhichDontSupportIncrementalLoading.woff2") format("woff2");
src: url("MyIncrementallyLoadedWebFont.otf") format(opentype) tech(incremental);
src: url("MyIncrementallyLoadedWebFont.otf") format(opentype) tech(incremental-range);
}
</pre>
</div>
Expand Down Expand Up @@ -7577,9 +7578,13 @@ The System Font is the font which is used by the ''system-ui'' <a href="#system-
<code><a href="https://docs.microsoft.com/en-us/typography/opentype/spec/cpal">CPAL</a></code> table.
The section on [[#color-font-support]] describes properties that interact with these facilities.

The 'incremental' tech refers to client support for
incremental font loading,
using either the range-request or the patch-subset method [[PFE-report]].
The 'incremental-patch', 'incremental-range' and 'incremental-auto' techs
refer to client support for incremental font transfer [[IFT]],
using the patch-subset, range-request, or
<a href="https://w3c.github.io/IFT/Overview.html#opt-in">automatic negotiation</a>
between these two methods.

<p class="informative">For background on these, see [[PFE-report]].</p>

Web authors can specify the 'tech' function
inside an ''@font-face'' 'src!!descriptor' descriptor
Expand Down
9 changes: 5 additions & 4 deletions css-fonts-5/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,9 @@ Then each component value is parsed according to this grammar:
| svg | truetype | woff | woff2 ]</pre>

<pre class="prod"><dfn id="font-tech-values">&lt;font-tech&gt;</dfn>
= [<<font-features-tech>> | <<color-font-tech>>
| variations | palettes | incremental ]</pre>
= [<<font-features-tech>> | <<color-font-tech>>
| variations | palettes |
incremental-patch | incremental-range | incremental-auto ]</pre>

<pre class="prod"><dfn id="font-features-tech-values">&lt;font-features-tech&gt;</dfn>
= [features-opentype | features-aat | features-graphite]</pre>
Expand Down Expand Up @@ -396,7 +397,7 @@ or font format.
for optimal performance.
Then,
for incremental transfer using the
<a href="https://www.w3.org/TR/2020/NOTE-PFE-evaluation-20201015/#range-request">range-request method</a>,
<a href="https://w3c.github.io/IFT/Overview.html#range-request-incxfer">range-request method</a>,
the raw uncompressed OpenType font is provided
so that the client
can perform byte range requests.
Expand All @@ -405,7 +406,7 @@ or font format.
@font-face {
font-family: "MyIncrementallyLoadedWebFont";
src: url("FallbackURLForBrowsersWhichDontSupportIncrementalLoading.woff2") format("woff2");
src: url("MyIncrementallyLoadedWebFont.otf") format(opentype) tech(incremental);
src: url("MyIncrementallyLoadedWebFont.otf") format(opentype) tech(incremental-range);
}
</pre>
</div>
Expand Down

0 comments on commit a951f1f

Please sign in to comment.