Add note explaining how to import fonts with spaces in name (#46348)
Fixes: https://github.com/vercel/next.js/issues/45916 ## Documentation / Examples - [x] Make sure the linting passes by running `pnpm build && pnpm lint` - [x] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md) Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
This commit is contained in:
parent
18232f6e75
commit
3997b50279
1 changed files with 2 additions and 0 deletions
|
@ -68,6 +68,8 @@ const roboto = Roboto({
|
|||
})
|
||||
```
|
||||
|
||||
> **Note**: You can use `_` for fonts with spaces in the name. For example `Titillium Web` should be `Titillium_Web`.
|
||||
|
||||
#### Apply the font in `<head>`
|
||||
|
||||
You can also use the font without a wrapper and `className` by injecting it inside the `<head>` as follows:
|
||||
|
|
Loading…
Reference in a new issue