W3cubDocs

/Web APIs

FontFaceSetLoadEvent: FontFaceSetLoadEvent() constructor

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, or loadingerror.

options Optional

An object that, in addition of the properties defined in Event(), can have the following properties:

fontfaces Optional

An array of FontFace instances. It defaults to the empty array.

Return value

A new FontFaceSetLoadEvent object.

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
FontFaceSetLoadEvent 57 79 41 No 44 No No 57 41 43 No 7.0

© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSetLoadEvent/FontFaceSetLoadEvent