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.

9 lines (8 loc) 290 B
/** * Generate the Google Fonts URL given the requested weight(s), style(s) and additional variable axes */ export declare function getGoogleFontsUrl(fontFamily: string, axes: { wght?: string[]; ital?: string[]; variableAxes?: [string, string][]; }, display: string): string;