rsnext/packages/font
Tim Neutkens b091869f29
Revert "Revert "Add retry for fetching subsetted Google Fonts"" (#58075)
Reverts vercel/next.js#57154

Brings back the changes but uses the compiled version of async-retry instead. Previously these changes causes an error as async-retry wasn't installed.
2023-11-07 11:54:11 +00:00
..
google @next/font error messages (#42689) 2022-11-09 10:32:32 -08:00
local @next/font error messages (#42689) 2022-11-09 10:32:32 -08:00
src Revert "Revert "Add retry for fetching subsetted Google Fonts"" (#58075) 2023-11-07 11:54:11 +00:00
fontkit.js Local font files adjust fallbacks (#41180) 2022-10-10 18:54:34 +00:00
package.json Revert "Revert "Add retry for fetching subsetted Google Fonts"" (#58075) 2023-11-07 11:54:11 +00:00
README.md Update links from beta to stable docs. (#49349) 2023-05-11 11:52:29 -07:00
tsconfig.json Add next font package (#40227) 2022-09-21 15:10:24 -07:00

@next/font

@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.

This new font system also allows you to conveniently use all Google Fonts with performance and privacy in mind. CSS and font files are downloaded at build time and self-hosted with the rest of your static assets. No requests are sent to Google by the browser.

Read more