1 | export = WebFont;
|
2 | export as namespace WebFont;
|
3 |
|
4 | declare namespace WebFont {
|
5 | export function load(config: WebFont.Config): void;
|
6 | export interface Config {
|
7 |
|
8 | classes?: boolean | undefined;
|
9 |
|
10 | events?: boolean | undefined;
|
11 |
|
12 | timeout?: number | undefined;
|
13 |
|
14 | loading?(): void;
|
15 |
|
16 | active?(): void;
|
17 |
|
18 | inactive?(): void;
|
19 |
|
20 | fontloading?(familyName: string, fvd: string): void;
|
21 |
|
22 | fontactive?(familyName: string, fvd: string): void;
|
23 |
|
24 | fontinactive?(familyName: string, fvd: string): void;
|
25 |
|
26 |
|
27 | context?: Window | undefined;
|
28 |
|
29 | custom?: Custom | undefined;
|
30 | google?: Google | undefined;
|
31 | typekit?: Typekit | undefined;
|
32 | fontdeck?: Fontdeck | undefined;
|
33 | monotype?: Monotype | undefined;
|
34 | }
|
35 | export interface Google {
|
36 | api?: string | undefined;
|
37 | families: string[];
|
38 | text?: string | undefined;
|
39 | }
|
40 | export interface Typekit {
|
41 | id?: string | undefined;
|
42 | }
|
43 | export interface Custom {
|
44 | families?: string[] | undefined;
|
45 | urls?: string[] | undefined;
|
46 | testStrings?: { [fontFamily: string]: string } | undefined;
|
47 | }
|
48 | export interface Fontdeck {
|
49 | id?: string | undefined;
|
50 | }
|
51 | export interface Monotype {
|
52 | projectId?: string | undefined;
|
53 | version?: number | undefined;
|
54 | loadAllFonts?: boolean | undefined;
|
55 | }
|
56 | }
|