Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • EventTarget
    • FontFaceSet

Index

Properties

onloading: null | ((this: internal.FontFaceSet, ev: Event) => any)
onloadingdone: null | ((this: internal.FontFaceSet, ev: Event) => any)
onloadingerror: null | ((this: internal.FontFaceSet, ev: Event) => any)
ready: Promise<internal.FontFaceSet>

Methods

  • addEventListener<K>(type: K, listener: ((this: internal.FontFaceSet, ev: FontFaceSetEventMap[K]) => any), options?: boolean | AddEventListenerOptions): void
  • addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void
  • check(font: string, text?: string): boolean
  • Parameters

    • font: string
    • Optional text: string

    Returns boolean

  • dispatchEvent(event: Event): boolean
  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    Parameters

    • event: Event

    Returns boolean

  • Parameters

    • font: string
    • Optional text: string

    Returns Promise<internal.FontFace[]>

  • removeEventListener<K>(type: K, listener: ((this: internal.FontFaceSet, ev: FontFaceSetEventMap[K]) => any), options?: boolean | EventListenerOptions): void
  • removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void

Generated using TypeDoc