silverwolf-x/project / errors /google-fonts-missing-subsets.mdx
silverwolf-x's picture
download
raw
830 Bytes
---
title: 'Missing specified subset for a `next/font/google` font'
---
## Why This Error Occurred
Preload is enabled for a font that is missing a specified subset.
## Possible Ways to Fix It
### Specify which subsets to preload for that font.
```js filename="example.js"
const inter = Inter({ subsets: ['latin'] })
```
> **Note**: previously it was possible to specify default subsets in your `next.config.js` with the `experimental.fontLoaders` option, but this is no longer supported.
### Disable preloading for that font
If it's not possible to preload your intended subset you can disable preloading.
```js filename="example.js"
const notoSansJapanese = Noto_Sans_JP({
weight: '400',
preload: false,
})
```
## Useful Links
- [Specifying a subset](/docs/pages/api-reference/components/font#specifying-a-subset)

Xet Storage Details

Size:
830 Bytes
·
Xet hash:
35c99955a814349a80f3f5b9cbc1b665518970e6cd4e0b8aaaf9427471a9765f

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.