package js.html
extends EventTarget
Available on jsThe
FontFaceSetinterface of the CSS Font Loading API is an interface for loading font faces and checking their download statuses.Documentation FontFaceSet by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
onloading:FunctionAn EventListener property called whenever an event of type loading is fired, indicating that a font face set has started to load.
onloadingdone:FunctionAn EventListener property called whenever an event of type loadingdone is fired, indicating that a font face set has finished loading.
onloadingerror:FunctionAn EventListener property called whenever an event of type loadingerror is fired, indicating that an error occurred during the loading of a font face set.
read only ready:Promise<Void>read only size:Intread only status:FontFaceSetLoadStatusIndicates the font face's loading status. It will be one of 'loading' or 'loaded'.
add (font:FontFace):VoidThrows:
null |
DOMError |
|---|
check (font:String, text:String = " "):BoolThrows:
null |
DOMError |
|---|
clear ():Void delete_ (font:FontFace):Boolentries ():FontFaceSetIteratorforEach (cb:FontFace ‑> FontFace ‑> FontFaceSet ‑> Void, ?thisArg:Dynamic):VoidThrows:
null |
DOMError |
|---|
has (font:FontFace):Bool load (font:String, text:String = " "):Promise<Array<FontFace>>values ():FontFaceSetIterator
© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/FontFaceSet.html