mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-14 04:50:05 +02:00
fix: fonts not rendered on init if loadingdone
not fired (#5923)
* fix: fonts not rendered on init if `loadingdone` not fired * remove unnecessary check
This commit is contained in:
2
src/global.d.ts
vendored
2
src/global.d.ts
vendored
@@ -2,6 +2,8 @@
|
||||
interface Document {
|
||||
fonts?: {
|
||||
ready?: Promise<void>;
|
||||
check?: (font: string, text?: string) => boolean;
|
||||
load?: (font: string, text?: string) => Promise<FontFace[]>;
|
||||
addEventListener?(
|
||||
type: "loading" | "loadingdone" | "loadingerror",
|
||||
listener: (this: Document, ev: Event) => any,
|
||||
|
Reference in New Issue
Block a user