Function useFontLoading

  • Returns {
        checkFont: (family: string) => Promise<boolean>;
        loadFont: (
            family: string,
            source: string | Blob | ArrayBuffer | URL,
            options?: FontOptions,
        ) => Promise<FontFace>;
        ready: () => Promise<undefined | FontFaceSet>;
        get state(): FontLoadingState;
        subscribe(callback: (state: FontLoadingState) => void): () => boolean;
    }