mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix incorrect font rendered on late load (#1555)
This commit is contained in:
parent
4696c9ee0e
commit
8c8458ceb0
3 changed files with 16 additions and 19 deletions
4
src/global.d.ts
vendored
4
src/global.d.ts
vendored
|
@ -1,6 +1,10 @@
|
|||
interface Document {
|
||||
fonts?: {
|
||||
ready?: Promise<void>;
|
||||
addEventListener?(
|
||||
type: "loading" | "loadingdone" | "loadingerror",
|
||||
listener: (this: Document, ev: Event) => any,
|
||||
): void;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue