Firefox Tomorrow

web api interface

FontFaceSet

View on MDN ↗

Available in workers

The FontFaceSet interface of the CSS Font Loading API manages the loading of font-faces and querying of their download status.

A FontFaceSet instance is a Set-like object that can hold an ordered set of FontFace objects.

This property is available as fonts, or self.fonts in web workers.

Instance properties

  • status Read only
    • : Indicates the font-face’s loading status. It will be one of 'loading' or 'loaded'.
  • ready Read only
    • : Promise which resolves once font loading and layout operations have completed.
  • size Read only
    • : Returns the number of values in the FontFaceSet.

Events

  • loading
    • : Fires when a font-face set has started loading.
  • loadingdone
    • : Fires when a font face set has finished loading.
  • loadingerror
    • : Fires when an error occurred while loading a font-face set.

Instance methods

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.