Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/yxz/typing/lib.dom.ts>FontFaceSet

Deno Standard Extensions
Go to Latest
interface FontFaceSet
implements EventTarget
import { type FontFaceSet } from "https://deno.land/x/yxz@0.17.0/typing/lib.dom.ts";

Properties

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

Methods

check(font: string, text?: string): boolean
load(font: string, text?: string): Promise<FontFace[]>
forEach(callbackfn: (
value: FontFace,
key: FontFace,
parent: FontFaceSet,
) => void
, thisArg?: any
): void
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
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