Skip to content

Commit 29257dc

Browse files
committed
[css-font-loading] Bikeshed work.
1 parent b398dd4 commit 29257dc

File tree

2 files changed

+60
-28
lines changed

2 files changed

+60
-28
lines changed

css-font-loading/Overview.bs

+21-5
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,14 @@ The Constructor</h3>
196196
from a URL pointing to a font face file,
197197
or from an ArrayBuffer (or ArrayBufferView) containing the binary representation of a font face.
198198

199-
When the <dfn method title='FontFace()' for=FontFace>FontFace</dfn>(DOMString <dfn argument for="FontFace/FontFace()">family</dfn>, (DOMString or {{BinaryData}}) <dfn argument for="FontFace/FontFace()">source</dfn>, {{FontFaceDescriptors}} <dfn argument for="FontFace/FontFace()">descriptors</dfn>) method is called,
199+
When the <dfn constructor title='FontFace()' for=FontFace>FontFace</dfn>(
200+
<span dfn-for="FontFace/FontFace(family, source, descriptors)">
201+
DOMString <dfn argument>family</dfn>,
202+
(DOMString or {{/BinaryData}}) <dfn argument>source</dfn>,
203+
{{/FontFaceDescriptors}} <dfn argument>descriptors</dfn>
204+
</span>
205+
)
206+
method is called,
200207
execute these steps:
201208

202209
1. Let <var>font face</var> be a fresh {{FontFace}} object.
@@ -431,6 +438,8 @@ The <code>FontFaceSet</code> Interface</h2>
431438
};
432439
</pre>
433440

441+
{{FontFaceSet/load()}}
442+
434443
<div dfn-for="FontFaceSet">
435444
: <dfn attribute>ready</dfn>
436445
:: This attribute reflects the {{FontFaceSet}}'s {{[[ReadyPromise]]}} slot.
@@ -686,15 +695,20 @@ Events</h3>
686695
<h3 id='font-face-set-load'>
687696
The <code>load()</code> method</h3>
688697

689-
The {{FontFaceSet/load() method of {{FontFaceSet}} will determine whether all fonts in the given font list
698+
The {{FontFaceSet/load()}} method of {{FontFaceSet}} will determine whether all fonts in the given font list
690699
have been loaded and are available.
691700
If any fonts are downloadable fonts and have not already been loaded,
692701
the user agent will initiate the load of each of these fonts.
693702
It returns a Promise,
694703
which is fulfilled when all of the fonts are loaded and ready to be used,
695704
or rejected if any font failed to load properly.
696705

697-
When the <dfn method for="FontFaceSet" title="load()">load</dfn>(<dfn argument for="FontFaceSet/load()">font</dfn>, <dfn argument for="FontFaceSet/load()">text</dfn>) method is called,
706+
When the <dfn method for="FontFaceSet" title="load(font, text)">load</dfn>(
707+
<span dfn-for="FontFaceSet/load(font, text)">
708+
<dfn argument>font</dfn>,
709+
<dfn argument>text</dfn>
710+
</span>
711+
) method is called,
698712
execute these steps:
699713

700714
<ol>
@@ -741,13 +755,15 @@ The <code>load()</code> method</h3>
741755
<h3 id='font-face-set-check'>
742756
The <code>check()</code> method</h3>
743757

744-
The {{check()}} method of {{FontFaceSet}} will determine whether all fonts in the given font list
758+
The {{FontFaceSet/check()}} method of {{FontFaceSet}} will determine whether all fonts in the given font list
745759
have been loaded and are available.
746760
If all fonts are available,
747761
it returns true;
748762
otherwise, it returns false.
749763

750-
When the <dfn method for="FontFaceSet" title="check()">check</dfn>(<dfn argument for="FontFaceSet/check()">font</dfn>, <dfn argument for="FontFaceSet/check()">text</dfn>) method is called,
764+
When the <dfn method for="FontFaceSet" title="check(font, text)|check(font)">check</dfn>(
765+
<span data-dfn-for="FontFaceSet/check(font, text)"><dfn argument>font</dfn>, <dfn argument>text</dfn>)</span>
766+
method is called,
751767
execute these steps:
752768

753769
<ol>

0 commit comments

Comments
 (0)