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.

31 lines (30 loc) 747 B
{ "name": "@next/font", "version": "14.2.3", "repository": { "url": "vercel/next.js", "directory": "packages/font" }, "types": "dist/types.d.ts", "files": [ "dist", "google", "local" ], "license": "MIT", "scripts": { "build": "node ../../scripts/rm.mjs dist && pnpm ncc-fontkit && tsc -d -p tsconfig.json", "prepublishOnly": "cd ../../ && turbo run build", "dev": "pnpm ncc-fontkit && tsc -d -w -p tsconfig.json", "typescript": "tsec --noEmit -p tsconfig.json", "ncc-fontkit": "ncc build ./fontkit.js --minify -o dist/fontkit" }, "devDependencies": { "@types/fontkit": "2.0.0", "@vercel/ncc": "0.34.0", "fontkit": "2.0.2" }, "peerDependencies": { "next": "*" } }