Unverified Commit 3997b502 authored by Jan Kaifer's avatar Jan Kaifer Committed by GitHub

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: 's avatarJJ Kasper <22380829+ijjk@users.noreply.github.com>
parent 18232f6e
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment