fix incorrect font rendered on late load (#1555)

This commit is contained in:
David Luzar 2020-05-08 10:42:51 +02:00 committed by GitHub
parent 4696c9ee0e
commit 8c8458ceb0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 19 deletions

4
src/global.d.ts vendored
View file

@ -1,6 +1,10 @@
interface Document {
fonts?: {
ready?: Promise<void>;
addEventListener?(
type: "loading" | "loadingdone" | "loadingerror",
listener: (this: Document, ev: Event) => any,
): void;
};
}