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.

5 lines (4 loc) 147 B
/** * Fetch the url and return a buffer with the font file. */ export declare function fetchFontFile(url: string, isDev: boolean): Promise<any>;