Are all google fonts supported?
Unanswered
sgb004 posted this in #help-forum
Original message was deleted.
7 Replies
Short answer: yes.
Longer answer: Next.js updates the list of Google fonts that it supports manually every now and then, so newer fonts may not be immediately available for use with the
Longer answer: Next.js updates the list of Google fonts that it supports manually every now and then, so newer fonts may not be immediately available for use with the
next/font packageIf you don't see it in the available fonts then it means it hasn't been added yet, and if you really want to you could open an issue detailing your request. But I suggest you just wait a little bit.
How long would I have to wait?
if you press the autocomplete key you can see that a couple of these fonts are already available, your import is just using the wrong name
in the documentation it doesn't say how to use fonts that have spaces in their names
Also see this: https://github.com/vercel/next.js/blob/canary/packages/font/src/google/index.ts#L10584
You just typed in the wrong name
You just typed in the wrong name
@sgb004 in the documentation it doesn't say how to use fonts that have spaces in their names
No, cause it's not something worth mentioning... Javascript doesn't allow spaces in your variable/function names and if you have a good code editor it will tell you there's an error if you try importing something that doesn't exists.
If you're in doubt, type in the first two or three letters and then press ctrl+space. It will bring out the intellisense panel and you'll see a list of available names
If you're in doubt, type in the first two or three letters and then press ctrl+space. It will bring out the intellisense panel and you'll see a list of available names