Skip to content
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

Inter changed unexpectedly #7985

Closed
lkatkus opened this issue Jul 31, 2024 · 7 comments
Closed

Inter changed unexpectedly #7985

lkatkus opened this issue Jul 31, 2024 · 7 comments

Comments

@lkatkus
Copy link

lkatkus commented Jul 31, 2024

Describe the bug

Inter font changed unexpectedly at somepoint in the last couple of days.

Expected behavior

Expect font not to change

Screenshots

Before
google-inter-before

After
google-inter-after

Additional context

I'm using nextjs next/font/google , but believe that something changed with the font itself, as this can be reproduced by directly importing font without nextjs.

@m4rc1e
Copy link
Collaborator

m4rc1e commented Jul 31, 2024

Thanks for opening the issue.

We recently updated Inter so we're now serving the latest version, which includes Italics, #7776.

We received a lot of requests to update this family #7661, #3429

@lkatkus
Copy link
Author

lkatkus commented Jul 31, 2024

Cool! Thanks for the clarification.

@davelab6
Copy link
Member

Expected behavior

Expect font not to change

I'm sorry but if you want this you'll need to self-host. Google Fonts team regularly updates fonts in the API, the millions of websites that use the API therefore get force-updated fonts.

@Inclushe
Copy link

Inclushe commented Aug 1, 2024

I noticed that my Inter variable embed URL has stopped working. It now sends a 400 error.

https://fonts.googleapis.com/css2?family=Inter:slnt,wght@-10..0,100..900&display=swap

I believe this was the default URL when you clicked Get font > Get embed code on the Google Fonts page.

Here's a link to all GitHub repos that use that embed code.

@ljs19923
Copy link

ljs19923 commented Aug 2, 2024

Same error.. I can't deploy my project anymore. What's the best solution?

@Inclushe
Copy link

Inclushe commented Aug 2, 2024

Same error.. I can't deploy my project anymore. What's the best solution?

Google Fonts has updated their embed code/URL to reflect their updated italics.

@vv-monsalve
Copy link
Collaborator

I noticed that my Inter variable embed URL has stopped working. It now sends a 400 error.

https://fonts.googleapis.com/css2?family=Inter:slnt,wght@-10..0,100..900&display=swap

Please inspect the updated embed code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants