forked from mdn/content
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
47 lines (37 loc) · 1.45 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
title: CSS Font Loading API
slug: Web/API/CSS_Font_Loading_API
tags:
- API
- CSSFontLoading
- CSSOM
- Experimental
- Fonts
- NeedsContent
- Reference
---
<div>{{DefaultAPISidebar("CSS Font Loading API")}}{{SeeCompatTable}}</div>
<p>The CSS Font Loading API provides events and interfaces for dynamically loading font resources.</p>
<div class="notecard note">
<p><strong>Note:</strong> This feature is available in <a href="/en-US/docs/Web/API/Web_Workers_API">Web Workers</a> (<code>self.fonts</code> provides access to {{domxref('FontFaceSet')}}).</p>
</div>
<h2 id="Interfaces">Interfaces</h2>
<dl>
<dt>{{domxref('FontFace')}}</dt>
<dd>Represents a single usable font face.</dd>
<dt>{{domxref('FontFaceSet')}}</dt>
<dd>An interface loading font faces and checking their download statuses.</dd>
<dt>{{domxref('FontFaceSource')}}</dt>
<dd>A {{Glossary("mixin")}} providing all of the fonts used in font-related operations, unless defined otherwise. It defines the {{domxref("FontFaceSources.fonts")}} property available to {{domxref("Document")}} and {{domxref("WorkerGlobalScope")}}.</dd>
<dt>{{domxref('FontFaceSetLoadEvent')}}</dt>
<dd>Fired whenever a {{domxref("FontFaceSet")}} loads.</dd>
</dl>
<h2 id="Specifications">Specifications</h2>
{{Specifications("api.FontFace")}}
<h2 id="Browser_compatibility">Browser compatibility</h2>
<div>
<h3 id="FontFace_interface">FontFace interface</h3>
<div>
<p>{{Compat("api.FontFace")}}</p>
</div>
</div>