@next/font

v13.1.7-canary.14
`@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.

dev

pnpm ncc-fontkit && tsc -d -w -p tsconfig.json

build

rimraf dist && pnpm ncc-fontkit && tsc -d -p tsconfig.json

test-pack

cd ../../ && pnpm test-pack font

typescript

tsec --noEmit -p tsconfig.json

ncc-fontkit

ncc build ./fontkit.js -o dist/fontkit

prepublishOnly

cd ../../ && turbo run build
npm i @next/[email protected]

Metadata

  • MIT
  • Whatever
  • Unknown
  • released 2/15/2023

Downloads