is an interface defined as part of the
CSS Font Loading API.
It's used to load font faces, and check the status of previously requested fonts. The
The sample illustrates constructing FontFace objects and explicitly adding them to
the page's document.fontsFontFaceSet, which is an alternative to the
more traditional approach of using CSS's
rule. It uses the
promise to keep track of when each individual font has been loaded.
The sample also shows off the newer
functionality in FontFaceSet, by iterating over document.fonts.values()
once all the fonts are loaded, and displaying information about each FontFace.