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:
Jan Kaifer 2023-02-24 20:25:34 +01:00 committed by GitHub
parent 18232f6e75
commit 3997b50279
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: