This repository has been archived on 2025-07-07. You can view files and clone it, but cannot push or open issues or pull requests.
Files
2025-01-11 09:54:09 +03:00

21 lines
626 B
TypeScript

export type FontManifest = Array<{
url: string;
content: string;
}>;
export type FontConfig = boolean;
export declare function getFontDefinitionFromNetwork(url: string): Promise<string>;
export declare function calculateOverrideValues(fontName: string): {
ascent: any;
descent: any;
lineGap: any;
fallbackFont: string;
};
export declare function calculateSizeAdjustValues(fontName: string): {
ascent: any;
descent: any;
lineGap: any;
fallbackFont: string;
sizeAdjust: string;
};
export declare function getFontOverrideCss(url: string, css: string, useSizeAdjust?: boolean): string;