UNPKG

@next/font

Version:

`@next/font` includes built-in automatic self-hosting for any font file. This means you can optimally load web fonts with zero layout shift, thanks to the underlying CSS size-adjust property used.

18 lines (17 loc) 504 B
type FontOptions = { fontFamily: string; weights: string[]; styles: string[]; display: string; preload: boolean; selectedVariableAxes?: string[]; fallback?: string[]; adjustFontFallback: boolean; variable?: string; subsets: string[]; }; /** * Validate the data recieved from next-swc next-transform-font on next/font/google calls */ export declare function validateGoogleFontFunctionCall(functionName: string, fontFunctionArgument: any): FontOptions; export {};