FontFaceSet class

The interface of the CSS Font Loading API manages the loading of font-faces and querying of their download status. It is available as Document.fonts.

EventTarget

FontFaceSet

Implemented types
Available extensions
Annotations
  • @JS.new()
  • @staticInterop

Constructors

FontFaceSet(Iterable<FontFace> initialFaces)
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
onloading ↔ EventHandlerNonNull<Event>?

Available on FontFaceSet, provided by the PropsFontFaceSet extension

getter/setter pair
onloadingdone ↔ EventHandlerNonNull<Event>?

Available on FontFaceSet, provided by the PropsFontFaceSet extension

getter/setter pair
onloadingerror ↔ EventHandlerNonNull<Event>?

Available on FontFaceSet, provided by the PropsFontFaceSet extension

getter/setter pair
ready → Future<FontFaceSet>

Available on FontFaceSet, provided by the PropsFontFaceSet extension

no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → FontFaceSetLoadStatus

Available on FontFaceSet, provided by the PropsFontFaceSet extension

no setter

Methods

add(FontFace font) → FontFaceSet

Available on FontFaceSet, provided by the PropsFontFaceSet extension

addEventListener(String type, EventListener? callback, [dynamic options]) → void

Available on EventTarget, provided by the PropsEventTarget extension

check(String font, [String? text = ' ']) → bool

Available on FontFaceSet, provided by the PropsFontFaceSet extension

clear() → void

Available on FontFaceSet, provided by the PropsFontFaceSet extension

delete(FontFace font) → bool

Available on FontFaceSet, provided by the PropsFontFaceSet extension

dispatchEvent(Event event) → bool

Available on EventTarget, provided by the PropsEventTarget extension

load(String font, [String? text = ' ']) → Future<Iterable<FontFace>>

Available on FontFaceSet, provided by the PropsFontFaceSet extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeEventListener(String type, EventListener? callback, [dynamic options]) → void

Available on EventTarget, provided by the PropsEventTarget extension

toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited