From 3997b502796c94a56e6192b3ba7e1d611d4fb8dd Mon Sep 17 00:00:00 2001 From: Jan Kaifer Date: Fri, 24 Feb 2023 20:25:34 +0100 Subject: [PATCH] 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> --- docs/basic-features/font-optimization.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/basic-features/font-optimization.md b/docs/basic-features/font-optimization.md index 60a47d3653..2aa5fa0693 100644 --- a/docs/basic-features/font-optimization.md +++ b/docs/basic-features/font-optimization.md @@ -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 `` You can also use the font without a wrapper and `className` by injecting it inside the `` as follows: