FontFaceSetLoadEvent: FontFaceSetLoadEvent() constructor
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Note: This feature is available in Web Workers.
The FontFaceSetLoadEvent() constructor creates a new
FontFaceSetLoadEvent object which is fired whenever a
FontFaceSet loads.
Syntax
js
new FontFaceSetLoadEvent(type)
new FontFaceSetLoadEvent(type, options)
Parameters
type-
A string with the name of the event. It is case-sensitive and browsers always set it to
loading,loadingdone, orloadingerror. optionsOptional-
An object that, in addition of the properties defined in
Event(), can have the following properties:fontfacesOptional-
An array of
FontFaceinstances. It defaults to the empty array.
Return value
A new FontFaceSetLoadEvent object.
Specifications
| Specification |
|---|
| CSS Font Loading Module Level 3> # dom-fontfacesetloadevent-fontfacesetloadevent> |