FontFaceSet
interface FontFaceSet extends EventTarget {
onloading: ((this: FontFaceSet, ev: Event) => any) | null;
onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null;
onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null;
readonly ready: Promise<FontFaceSet>;
readonly status: FontFaceSetLoadStatus;
addEventListener<K extends keyof FontFaceSetEventMap>(
type: K,
listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void;addEventListener(
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void;check(font: string, text?: string): boolean;
forEach(callbackfn: (
value: FontFace,
key: FontFace,
parent: FontFaceSet,
) => void, thisArg?: any): void;removeEventListener<K extends keyof FontFaceSetEventMap>(
type: K,
listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void;removeEventListener(
}type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void;var FontFaceSet: {
prototype: FontFaceSet;
new (initialFaces: FontFace[]): FontFaceSet;
};§Extends
§Properties
§
onloading: ((this: FontFaceSet, ev: Event) => any) | null
[src]§
onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null
[src]§
onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null
[src]§
readonly ready: Promise<FontFaceSet>
[src]§
readonly status: FontFaceSetLoadStatus
[src]§Methods
§
addEventListener<K extends keyof FontFaceSetEventMap>(
[src]type: K,
listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void§
addEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void§
forEach(callbackfn: (
[src]value: FontFace,
key: FontFace,
parent: FontFaceSet,
) => void, thisArg?: any): void§
removeEventListener<K extends keyof FontFaceSetEventMap>(
[src]type: K,
listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void§
removeEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void