Back to Content

FontFaceSetLoadEvent

files/en-us/web/api/fontfacesetloadevent/index.md

latest1.4 KB
Original Source

{{APIRef("CSS Font Loading API")}}{{AvailableInWorkers}}

The FontFaceSetLoadEvent interface of the CSS Font Loading API represents events fired at a {{domxref("FontFaceSet")}} after it starts loading font faces.

Events are fired when font loading starts (loading), loading completes (loadingdone) or there is an error loading one of the fonts (loadingerror).

{{InheritanceDiagram}}

Constructor

  • {{domxref("FontFaceSetLoadEvent.FontFaceSetLoadEvent","FontFaceSetLoadEvent()")}}
    • : Creates a new FontFaceSetLoadEvent object.

Instance properties

Also inherits properties from its parent {{domxref("Event")}}.

  • {{domxref("FontFaceSetLoadEvent.fontfaces")}} {{ReadOnlyInline}}
    • : Returns an array of {{domxref("FontFace")}} instances. Depending on the event, the array will contain font faces that are loading (loading), have successfully loaded (loadingdone), or have failed to load (loadingerror).

Instance methods

Inherits methods from its parent, {{domxref("Event")}}.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • {{domxref("Document.fonts")}}
  • {{domxref("WorkerGlobalScope.fonts")}}