You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Let <var>font face</var> be a fresh {{FontFace}} object.
@@ -431,6 +438,8 @@ The <code>FontFaceSet</code> Interface</h2>
431
438
};
432
439
</pre>
433
440
441
+
{{FontFaceSet/load()}}
442
+
434
443
<div dfn-for="FontFaceSet">
435
444
: <dfn attribute>ready</dfn>
436
445
:: This attribute reflects the {{FontFaceSet}}'s {{[[ReadyPromise]]}} slot.
@@ -686,15 +695,20 @@ Events</h3>
686
695
<h3 id='font-face-set-load'>
687
696
The <code>load()</code> method</h3>
688
697
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
690
699
have been loaded and are available.
691
700
If any fonts are downloadable fonts and have not already been loaded,
692
701
the user agent will initiate the load of each of these fonts.
693
702
It returns a Promise,
694
703
which is fulfilled when all of the fonts are loaded and ready to be used,
695
704
or rejected if any font failed to load properly.
696
705
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,
698
712
execute these steps:
699
713
700
714
<ol>
@@ -741,13 +755,15 @@ The <code>load()</code> method</h3>
741
755
<h3 id='font-face-set-check'>
742
756
The <code>check()</code> method</h3>
743
757
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
745
759
have been loaded and are available.
746
760
If all fonts are available,
747
761
it returns true;
748
762
otherwise, it returns false.
749
763
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>(
0 commit comments