7fba48ef70
<!-- ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Feature - [x] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [x] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have helpful link attached, see `contributing.md` ## Documentation / Examples - [x] Make sure the linting passes by running `pnpm lint` - [ ] The examples guidelines are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples) - [ ] --> ## Feature - [x] Implements https://github.com/vercel/next.js/discussions/40112 - [x] Integration tests added Adds a new option to the current font optimization to enable experimental font size adjust The new `optimizeFonts` config will be ``` optimizeFonts: { inlineFonts: true, experimentalAdjustFallbacks: false, }, ``` To enable the feature, set `experimentalAdjustFallbacks: true` `optimizeFonts: false` will disable the entire feature (including inlining google font definition) Co-authored-by: JJ Kasper <jj@jjsweb.site> |
||
---|---|---|
.. | ||
terser-webpack-plugin | ||
wellknown-errors-plugin | ||
app-build-manifest-plugin.ts | ||
build-manifest-plugin.ts | ||
copy-file-plugin.ts | ||
css-minimizer-plugin.ts | ||
flight-client-entry-plugin.ts | ||
flight-manifest-plugin.ts | ||
font-stylesheet-gathering-plugin.ts | ||
jsconfig-paths-plugin.ts | ||
middleware-plugin.ts | ||
mini-css-extract-plugin.ts | ||
next-drop-client-page-plugin.ts | ||
next-trace-entrypoints-plugin.ts | ||
nextjs-require-cache-hot-reloader.ts | ||
pages-manifest-plugin.ts | ||
profiling-plugin.ts | ||
react-loadable-plugin.ts | ||
serverless-plugin.ts | ||
subresource-integrity-plugin.ts | ||
telemetry-plugin.ts |