rsnext/packages/font
Jiachi Liu 986039db6e
Update google fonts (#48984)
### What?

* Update google fonts for `next/font` with `scripts/update-google-fonts.js.`
* Add npm script `pnpm update-google-fonts`

### How?

Run `pnpm update-google-fonts`
2023-04-29 15:03:22 +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 Update google fonts (#48984) 2023-04-29 15:03:22 +00:00
fontkit.js Local font files adjust fallbacks (#41180) 2022-10-10 18:54:34 +00:00
package.json v13.3.2-canary.13 2023-04-28 22:55:36 +00: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