securityos/node_modules/next/dist/server/font-utils.d.ts

22 lines
726 B
TypeScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
export type FontManifest = Array<{
url: string;
content: string;
}>;
export type FontConfig = boolean;
export declare function getFontDefinitionFromNetwork(url: string): Promise<string>;
export declare function getFontDefinitionFromManifest(url: string, manifest: FontManifest): 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;