Interface FontFaceSet

interface FontFaceSet {
    $destroyListeners?: any[];
    onloading: Object;
    onloadingdone: Object;
    onloadingerror: Object;
    ready: Promise<FontFaceSet>;
    status: FontFaceSetLoadStatus;
    addEventListener<K>(type, listener, options?): void;
    addEventListener(type, listener, options?): void;
    check(font, text?): boolean;
    dispatchEvent(event): boolean;
    forEach(callbackfn, thisArg?): void;
    load(font, text?): Promise<FontFace[]>;
    removeEventListener<K>(type, listener, options?): void;
    removeEventListener(type, listener, options?): void;
}

Hierarchy

Properties

$destroyListeners?: any[]
onloading: Object
onloadingdone: Object
onloadingerror: Object

Methods

  • Type Parameters

    Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    • font: string
    • Optional text: string

    Returns 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.

    MDN Reference

    Parameters

    Returns boolean

  • Parameters

    • callbackfn: Object
    • Optional thisArg: any

    Returns void

  • Type Parameters

    Parameters

    Returns void

  • Parameters

    Returns void