Readonly[toReadonlyreadyThe ready read-only property of the FontFaceSet interface returns a Promise that resolves to the given FontFaceSet.
ReadonlysizeReadonlystatusThe status read-only property of the FontFaceSet interface returns the loading state of the fonts in the set.
Iterates over values in the set.
Appends a new element with a specified value to the end of the Set.
The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optionaloptions: boolean | AddEventListenerOptionsThe addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optionaloptions: boolean | AddEventListenerOptionsThe check() method of the FontFaceSet returns true if you can render some text using the given font specification without attempting to use any fonts in this FontFaceSet that are not yet fully loaded. This means you can use the font specification without causing a font swap.
Optionaltext: stringRemoves all elements from the Set.
Removes a specified value from the Set.
Returns true if an element in the Set existed and has been removed, or false if the element does not exist.
a new Set containing all the elements in this Set which are not also in the argument.
The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order. The normal event processing rules (including the capturing and optional bubbling phase) also apply to events dispatched manually with dispatchEvent().
Returns an iterable of [v,v] pairs for every value v in the set.
OptionalthisArg: anya boolean indicating whether an element with the specified value exists in the Set or not.
a new Set containing all the elements which are both in this Set and in the argument.
a boolean indicating whether this Set has no elements in common with the argument.
a boolean indicating whether all the elements in this Set are also in the argument.
a boolean indicating whether all the elements in the argument are also in this Set.
Despite its name, returns an iterable of the values in the set.
The load() method of the FontFaceSet forces all the fonts given in parameters to be loaded.
Optionaltext: stringThe removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target. The event listener to be removed is identified using a combination of the event type, the event listener function itself, and various optional options that may affect the matching process; see Matching event listeners for removal.
Optionaloptions: boolean | EventListenerOptionsThe removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target. The event listener to be removed is identified using a combination of the event type, the event listener function itself, and various optional options that may affect the matching process; see Matching event listeners for removal.
Optionaloptions: boolean | EventListenerOptionsa new Set containing all the elements which are in either this Set or in the argument, but not in both.
a new Set containing all the elements in this Set and also all the elements in the argument.
Returns an iterable of values in the set.
The
FontFaceSetinterface of the CSS Font Loading API manages the loading of font-faces and querying of their download status.MDN Reference