-
Notifications
You must be signed in to change notification settings - Fork 27.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
next/font
no longer works with "Inter" and "slnt" axes enabled
#68395
Comments
I'm having the same error on node 22 and node lts (20) versions. any workaround would be appreciated. For the time being i'm downgrading. |
Same error |
I am facing a similar error. Not sure if it's related, but it also started to happen unexpectedly:
It happens with |
The google font urls are broken. When requesting multiple font's it's giving timeout errors. It is not a network issue as online IDEs also have this error. |
this seems to also make a next.js test fail, see #68475 (comment)
|
@stefanprobst Taking a look at this! I think we just need to update our test so #68639 merges, which I believe would fix it so the correct embed URL is used. I think the axes need to also have an |
Interesting, the Google font data still doesn't include In the meantime, a new canary release should come out very soon with the update. |
@samcx if i understand the upstream change correctly, there is no |
also, will the updated font data be backported to next.js 14.x? |
I am having similiar issues with Roboto. |
@mlmetzner Try v15.0.0-canary.110! @stefanprobst Yes, I added to the queue for 14.2.6. No exact date for when that's released, but hopefully you can start using the canary in the meantime! I'll be closing this issue in the meantime. 🙇🏼 |
@samcx Im not sure to understand what's the current solution? Thank you I was using, import { Inter } from "next/font/google |
@ljs19923 here's the updated |
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Link to the code that reproduces this issue
https://github.com/stefanprobst/issue-next-fonts-inter-slnt
To Reproduce
clone repo, install deps, run
pnpm run build
.see error message:
Current vs. Expected behavior
font download should work (as it did until recently)
Provide environment information
Operating System: Platform: linux Arch: x64 Version: #45~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Jul 15 16:40:02 UTC 2 Available memory (MB): 15893 Available CPU cores: 4 Binaries: Node: 20.16.0 npm: 10.8.1 Yarn: N/A pnpm: 9.6.0 Relevant Packages: next: 14.2.5 // Latest available version is detected (14.2.5). eslint-config-next: N/A react: 18.3.1 react-dom: 18.3.1 typescript: 5.5.4 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Font (next/font)
Which stage(s) are affected? (Select all that apply)
next build (local)
Additional context
see google/fonts#7985 for upstream changes
when downloading Inter directly from google, the embed link is:
while
next/font
tries the following url, which now fails:The text was updated successfully, but these errors were encountered: