Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

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,
options?: boolean | AddEventListenerOptions,
): void;
check(font: string, text?: string): boolean;
forEach(callbackfn: (
value: FontFace,
key: FontFace,
parent: FontFaceSet,
) => void
, thisArg?: any): void;
load(font: string, text?: string): Promise<FontFace[]>;
removeEventListener<K extends keyof FontFaceSetEventMap>(
type: K,
listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void;
removeEventListener(
type: string,
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]

§Methods

§
addEventListener<K extends keyof FontFaceSetEventMap>(
type: K,
listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
[src]
§
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
[src]
§
check(font: string, text?: string): boolean
[src]
§
forEach(callbackfn: (
value: FontFace,
key: FontFace,
parent: FontFaceSet,
) => void
, thisArg?: any): void
[src]
§
load(font: string, text?: string): Promise<FontFace[]>
[src]
§
removeEventListener<K extends keyof FontFaceSetEventMap>(
type: K,
listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
[src]
§
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void
[src]