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

Loading multiple fonts at once with display swap not working #17

Open
jploch opened this issue Nov 3, 2023 · 5 comments
Open

Loading multiple fonts at once with display swap not working #17

jploch opened this issue Nov 3, 2023 · 5 comments

Comments

@jploch jploch changed the title Loading italic, weight and display swap not working Loading multiple fonts at once with display swap not working Nov 3, 2023
@andrasbacsai
Copy link
Member

I see all the fonts with the swap option. What is missing or incorrect?

@jploch
Copy link
Author

jploch commented Nov 4, 2023

Not sure if it's a cache thing on my end. The first link is returning all fonts correctly but the second link is only returning "Space Grotesk". I had some issues when adding the display=swap parameter with other links as well.

@andrasbacsai
Copy link
Member

image

Can you please check it now? I purged the cache.

@jploch
Copy link
Author

jploch commented Nov 5, 2023

Thanks for looking into it! Now it works correctly. Is there a way to add cache busting to the request url?

@sudomistress
Copy link

Ran into the same issue. In my case when using https://api.fonts.coollabs.io/css2?family=Kiwi+Maru&family=Stick&display=swap. When I looked at the result, I only saw Kiwi Maru.

Shown Here:
image

I swapped the order thinking it would show me Stick using https://api.fonts.coollabs.io/css2?family=Stick&family=Kiwi+Maru&display=swap and it gave me Stick only and not Kiwi Maru.

Shown here:
image

However, if I made the font "Stick" lowercase, it works. So https://api.fonts.coollabs.io/css2?family=stick&family=Kiwi+Maru&display=swap works.

Shown here:
image

Not sure if this helps, but wanted to add this in case it helps narrow down the issue.

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

No branches or pull requests

3 participants