FontFaceSetLoadEvent
CSS Font Loading API
CSS Font Loading API
The FontFaceSetLoadEvent interface of the CSS Font Loading API represents events fired at a 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).
Constructor
- FontFaceSetLoadEvent()
- : Creates a new
FontFaceSetLoadEventobject.
Instance properties
Also inherits properties from its parent Event.
- FontFaceSetLoadEvent.fontfaces
- : Returns an array of 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, Event.
Specifications
Browser compatibility
See also
- Document.fonts
- WorkerGlobalScope.fonts