rsnext/packages/font
Hannes Bornö cb729c1087
Remove experimental fontLoaders option from next.config.js (#46886)
Currently there's an experimental option in `next.config.js` that lets you define default subset(s) to preload for all your fonts. [docs](https://nextjs.org/docs/basic-features/font-optimization#specifying-a-subset)

Over time we haven't seen much use of this option, and we are defining the subsets in the font function call in all our examples/docs. Imo it would be fine to drop this option.

This PR removes that experimental option. If you happen to use it you'll get a build error with [a link](f67af163cd/errors/google-fonts-missing-subsets.md).

Next step (breaking change for next major) would probably be to remove the preload and subsets properties from `next/font/google` calls, and just have something like [`preloadSubsets´](https://vercel.slack.com/archives/C8EAN8A94/p1674868993169559?thread_ts=1674707555.461809&cid=C8EAN8A94) that is required.
2023-03-13 21:34:43 +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 Remove experimental fontLoaders option from next.config.js (#46886) 2023-03-13 21:34:43 +00:00
fontkit.js Local font files adjust fallbacks (#41180) 2022-10-10 18:54:34 +00:00
package.json v13.2.5-canary.2 2023-03-13 11:46:11 -07:00
README.md Update font links and add missing error (#41910) 2022-10-26 23:00:40 -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