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
<dt><dfnclass=idl-codedata-dfn-for=FontFacedata-dfn-type=attributedata-export="" id=dom-fontface-family>family<aclass=self-linkhref=#dom-fontface-family></a></dfn>, of type <aclass=idl-codedata-link-type=interfacetitle=domstring>DOMString</a>
183
-
<dt><dfnclass=idl-codedata-dfn-for=FontFacedata-dfn-type=attributedata-export="" id=dom-fontface-style>style<aclass=self-linkhref=#dom-fontface-style></a></dfn>, of type <aclass=idl-codedata-link-type=interfacetitle=domstring>DOMString</a>
184
-
<dt><dfnclass=idl-codedata-dfn-for=FontFacedata-dfn-type=attributedata-export="" id=dom-fontface-weight>weight<aclass=self-linkhref=#dom-fontface-weight></a></dfn>, of type <aclass=idl-codedata-link-type=interfacetitle=domstring>DOMString</a>
185
-
<dt><dfnclass=idl-codedata-dfn-for=FontFacedata-dfn-type=attributedata-export="" id=dom-fontface-stretch>stretch<aclass=self-linkhref=#dom-fontface-stretch></a></dfn>, of type <aclass=idl-codedata-link-type=interfacetitle=domstring>DOMString</a>
186
-
<dt><dfnclass=idl-codedata-dfn-for=FontFacedata-dfn-type=attributedata-export="" id=dom-fontface-unicoderange>unicodeRange<aclass=self-linkhref=#dom-fontface-unicoderange></a></dfn>, of type <aclass=idl-codedata-link-type=interfacetitle=domstring>DOMString</a>
182
+
<dt><dfnclass=idl-codedata-dfn-for=FontFacedata-dfn-type=attributedata-export="" id=dom-fontface-family>family<aclass=self-linkhref=#dom-fontface-family></a></dfn>, <spandata-attribute-info="" for=family>of type <adata-link-type=idl-nametitle=domstring>DOMString</a></span>
183
+
<dt><dfnclass=idl-codedata-dfn-for=FontFacedata-dfn-type=attributedata-export="" id=dom-fontface-style>style<aclass=self-linkhref=#dom-fontface-style></a></dfn>, <spandata-attribute-info="" for=style>of type <adata-link-type=idl-nametitle=domstring>DOMString</a></span>
184
+
<dt><dfnclass=idl-codedata-dfn-for=FontFacedata-dfn-type=attributedata-export="" id=dom-fontface-weight>weight<aclass=self-linkhref=#dom-fontface-weight></a></dfn>, <spandata-attribute-info="" for=weight>of type <adata-link-type=idl-nametitle=domstring>DOMString</a></span>
185
+
<dt><dfnclass=idl-codedata-dfn-for=FontFacedata-dfn-type=attributedata-export="" id=dom-fontface-stretch>stretch<aclass=self-linkhref=#dom-fontface-stretch></a></dfn>, <spandata-attribute-info="" for=stretch>of type <adata-link-type=idl-nametitle=domstring>DOMString</a></span>
186
+
<dt><dfnclass=idl-codedata-dfn-for=FontFacedata-dfn-type=attributedata-export="" id=dom-fontface-unicoderange>unicodeRange<aclass=self-linkhref=#dom-fontface-unicoderange></a></dfn>, <spandata-attribute-info="" for=unicodeRange>of type <adata-link-type=idl-nametitle=domstring>DOMString</a></span>
187
187
<dd>
188
188
These attributes all represent the corresponding aspects of a font face,
189
189
as defined by the descriptors defined in the CSS <aclass=cssdata-link-type=maybehref=http://www.w3.org/TR/css-fonts-3/#at-font-face-ruletitle=@font-face>@font-face</a> rule.
190
190
They are parsed the same as the corresponding <aclass=cssdata-link-type=maybehref=http://www.w3.org/TR/css-fonts-3/#at-font-face-ruletitle=@font-face>@font-face</a> descriptors.
191
191
They are used by the font matching algorithm,
192
192
but otherwise have no effect.
193
193
194
-
For example, a <aclass=idl-codedata-link-type=interfacehref=#dom-fontfacetitle=fontface>FontFace</a> with a <aclass=idl-codedata-link-type=attributehref=#dom-fontface-styletitle=style>style</a> of <code>"italic"</code>
194
+
<p>For example, a <aclass=idl-codedata-link-type=interfacehref=#dom-fontfacetitle=fontface>FontFace</a> with a <aclass=idl-codedata-link-type=attributehref=#dom-fontface-styletitle=style>style</a> of <code>"italic"</code>
195
195
<em>represents</em> an italic font face;
196
-
it does not <strong>make</strong> the font face italic.
196
+
it does not <strong>make</strong> the font face italic.</p>
197
197
198
-
<dt><dfnclass=idl-codedata-dfn-for=FontFacedata-dfn-type=attributedata-export="" id=dom-fontface-variant>variant<aclass=self-linkhref=#dom-fontface-variant></a></dfn>, of type <aclass=idl-codedata-link-type=interfacetitle=domstring>DOMString</a>
199
-
<dt><dfnclass=idl-codedata-dfn-for=FontFacedata-dfn-type=attributedata-export="" id=dom-fontface-featuresettings>featureSettings<aclass=self-linkhref=#dom-fontface-featuresettings></a></dfn>, of type <aclass=idl-codedata-link-type=interfacetitle=domstring>DOMString</a>
198
+
<dt><dfnclass=idl-codedata-dfn-for=FontFacedata-dfn-type=attributedata-export="" id=dom-fontface-variant>variant<aclass=self-linkhref=#dom-fontface-variant></a></dfn>, <spandata-attribute-info="" for=variant>of type <adata-link-type=idl-nametitle=domstring>DOMString</a></span>
199
+
<dt><dfnclass=idl-codedata-dfn-for=FontFacedata-dfn-type=attributedata-export="" id=dom-fontface-featuresettings>featureSettings<aclass=self-linkhref=#dom-fontface-featuresettings></a></dfn>, <spandata-attribute-info="" for=featureSettings>of type <adata-link-type=idl-nametitle=domstring>DOMString</a></span>
these attributes actually affect the font face.</p>
208
208
209
-
<dt><dfnclass=idl-codedata-dfn-for=FontFacedata-dfn-type=attributedata-export="" id=dom-fontface-status>status<aclass=self-linkhref=#dom-fontface-status></a></dfn>, of type <aclass=idl-codedata-link-type=enumhref=#enumdef-fontfaceloadstatustitle=fontfaceloadstatus>FontFaceLoadStatus</a>
209
+
<dt><dfnclass=idl-codedata-dfn-for=FontFacedata-dfn-type=attributedata-export="" id=dom-fontface-status>status<aclass=self-linkhref=#dom-fontface-status></a></dfn>, <spandata-attribute-info="" for=FontFace/status>of type <adata-link-type=idl-namehref=#enumdef-fontfaceloadstatustitle=fontfaceloadstatus>FontFaceLoadStatus</a>, readonly</span>
210
210
<dd>
211
211
This attribute reflects the current status of the font face.
212
212
It must be "unloaded" for a newly-created <aclass=idl-codedata-link-type=interfacehref=#dom-fontfacetitle=fontface>FontFace</a>.
due to it detecting that the font face is needed to draw some text on the screen.</p>
218
218
219
-
<dt><dfnclass=idl-codedata-dfn-for=FontFacedata-dfn-type=attributedata-export="" id=dom-fontface-loaded>loaded<aclass=self-linkhref=#dom-fontface-loaded></a></dfn>, of type <aclass=idl-codedata-link-type=interfacehref=#dom-promisetitle=promise>Promise</a>
219
+
<dt><dfnclass=idl-codedata-dfn-for=FontFacedata-dfn-type=attributedata-export="" id=dom-fontface-loaded>loaded<aclass=self-linkhref=#dom-fontface-loaded></a></dfn>, <spandata-attribute-info="" for=loaded>of type <adata-link-type=idl-namehref=#dom-promisetitle=promise>Promise<boolean></boolean></a></span>
220
220
<dd>
221
221
This attribute reflects the <adata-link-type=idlhref=#dom-fontface-fontstatuspromisetitle=[[fontstatuspromise]]>[[FontStatusPromise]]</a> of the font face.
Using the value of <var>font face’s <adata-link-type=idlhref=#dom-fontface-urlstitle=[[urls]]>[[Urls]]</a> slot,
328
-
attempt to load a font as defined in <adata-biblio-type=normativedata-link-type=bibliohref=#css3-fontstitle=css3-fonts>[CSS3-FONTS]</a>,
328
+
attempt to load a font as defined in <adata-biblio-type=normativedata-link-type=bibliohref=#biblio-css3-fontstitle=biblio-css3-fonts>[CSS3-FONTS]</a>,
329
329
as if it was the value of a <aclass=cssdata-link-type=maybehref=http://www.w3.org/TR/css-fonts-3/#at-font-face-ruletitle=@font-face>@font-face</a> rule’s <aclass=propertydata-link-type=propdeschref=http://www.w3.org/TR/css-fonts-3/#descdef-srctitle=src>src</a> descriptor.
Modifications of normal Set methods</span><aclass=self-linkhref=#set-modifications></a></h3>
465
465
466
-
The <aclass=idl-codedata-link-type=interfacehref=#dom-fontfacesettitle=fontfaceset>FontFaceSet</a> methods <code>add()</code> and <code>delete()</code>
466
+
<p>The <aclass=idl-codedata-link-type=interfacehref=#dom-fontfacesettitle=fontfaceset>FontFaceSet</a> methods <code>add()</code> and <code>delete()</code>
467
467
must throw an InvalidModificationError exception
468
-
if their argument is a <adata-link-type=dfnhref=#css-connectedtitle=css-connected>CSS-connected</a><aclass=idl-codedata-link-type=interfacehref=#dom-fontfacetitle=fontface>FontFace</a> object.
468
+
if their argument is a <adata-link-type=dfnhref=#css-connectedtitle=css-connected>CSS-connected</a><aclass=idl-codedata-link-type=interfacehref=#dom-fontfacetitle=fontface>FontFace</a> object.</p>
469
469
470
-
The <aclass=idl-codedata-link-type=interfacehref=#dom-fontfacesettitle=fontfaceset>FontFaceSet</a> method <code>clear()</code>
must only remove the manually-added <aclass=idl-codedata-link-type=interfacehref=#dom-fontfacetitle=fontface>FontFace</a> objects;
472
-
the <adata-link-type=dfnhref=#css-connectedtitle=css-connected>CSS-connected</a><aclass=idl-codedata-link-type=interfacehref=#dom-fontfacetitle=fontface>FontFace</a> objects are unaffected.
472
+
the <adata-link-type=dfnhref=#css-connectedtitle=css-connected>CSS-connected</a><aclass=idl-codedata-link-type=interfacehref=#dom-fontfacetitle=fontface>FontFace</a> objects are unaffected.</p>
Interaction with CSS Font Loading and Matching</span><aclass=self-linkhref=#font-face-set-css></a></h3>
758
758
759
-
<p>When the font matching algorithm in <adata-biblio-type=informativedata-link-type=bibliohref=#css3-fontstitle=css3-fonts>[CSS3-FONTS]</a> is run automatically by the user-agent,
759
+
<p>When the font matching algorithm in <adata-biblio-type=informativedata-link-type=bibliohref=#biblio-css3-fontstitle=biblio-css3-fonts>[CSS3-FONTS]</a> is run automatically by the user-agent,
760
760
the set of font faces it matches over must be precisely the set of fonts in the <adata-link-type=dfnhref=#font-sourcetitle="font source">font source</a> for the document,
<p>In both cases, the loading of the font resource “newfont.woff” will be initiated by the layout engine,
790
790
just as other <aclass=cssdata-link-type=maybehref=http://www.w3.org/TR/css-fonts-3/#at-font-face-ruletitle=@font-face>@font-face</a> rule fonts are loaded.</p>
791
791
792
-
Omitting the addition to <code>document.fonts</code> means the font would never be loaded
793
-
and text would be displayed in the default serif font:
792
+
<p>Omitting the addition to <code>document.fonts</code> means the font would never be loaded
793
+
and text would be displayed in the default serif font:</p>
794
794
795
795
<pre>var f = new FontFace("newfont", "url(newtest.woff)", {});
<p>All of the text of this specification is normative except sections
994
-
explicitly marked as non-normative, examples, and notes. <adata-biblio-type=normativedata-link-type=bibliohref=#rfc2119title=rfc2119>[RFC2119]</a></p>
994
+
explicitly marked as non-normative, examples, and notes. <adata-biblio-type=normativedata-link-type=bibliohref=#biblio-rfc2119title=biblio-rfc2119>[RFC2119]</a></p>
995
995
996
996
<p>Examples in this specification are introduced with the words "for example"
997
997
or are set apart from the normative text with <code>class="example"</code>,
<divdata-fill-with=normative-references><dl><dtid=css3-fontstitle=CSS3-FONTS><aclass=self-linkhref=#css3-fonts></a>[CSS3-FONTS]<dd>John Daggett. <ahref=http://www.w3.org/TR/2013/WD-css3-fonts-20130212/>CSS Fonts Module Level 3</a>. 12 February 2013. W3C Working Draft. (Work in progress.) URL: <ahref=http://www.w3.org/TR/2013/WD-css3-fonts-20130212/>http://www.w3.org/TR/2013/WD-css3-fonts-20130212/</a><dtid=rfc2119title=RFC2119><aclass=self-linkhref=#rfc2119></a>[RFC2119]<dd>S. Bradner. <ahref=http://www.ietf.org/rfc/rfc2119.txt>Key words for use in RFCs to Indicate Requirement Levels</a>. URL: <ahref=http://www.ietf.org/rfc/rfc2119.txt>http://www.ietf.org/rfc/rfc2119.txt</a></dl></div>
1104
+
<divdata-fill-with=normative-references><dl>
1105
+
<dtid=biblio-css3-fontstitle=CSS3-FONTS><aclass=self-linkhref=#biblio-css3-fonts></a>[CSS3-FONTS]<dd>John Daggett. <ahref=http://www.w3.org/TR/2013/WD-css3-fonts-20130212/>CSS Fonts Module Level 3</a>. 12 February 2013. W3C Working Draft. (Work in progress.) URL: <ahref=http://www.w3.org/TR/2013/WD-css3-fonts-20130212/>http://www.w3.org/TR/2013/WD-css3-fonts-20130212/</a></dd>
1106
+
<dtid=biblio-rfc2119title=RFC2119><aclass=self-linkhref=#biblio-rfc2119></a>[RFC2119]<dd>S. Bradner. <ahref=http://www.ietf.org/rfc/rfc2119.txt>Key words for use in RFCs to Indicate Requirement Levels</a>. URL: <ahref=http://www.ietf.org/rfc/rfc2119.txt>http://www.ietf.org/rfc/rfc2119.txt</a></dd>
0 commit comments