coollabsio / fonts

A privacy-friendly drop-in replacement for Google Fonts
https://fonts.coollabs.io
Apache License 2.0
405 stars 14 forks source link

Parameter &display=swap not working when requesting multiple fonts #11

Closed jploch closed 1 year ago

jploch commented 1 year ago

This is not working: https://api.fonts.coollabs.io/css2?family=Abril+Fatface:wght@400&family=Aguafina+Script:wght@400&display=swap

Without &display=swap it works as expected: https://api.fonts.coollabs.io/css2?family=Abril+Fatface:wght@400&family=Aguafina+Script:wght@400

poberbeck commented 1 year ago

I cannot confirm this behavior. Both response appears to be correct. Could you maybe share a screenshot of the response from the api?

mkessler commented 1 year ago

I'm seeing the same behavior here:

andrasbacsai commented 1 year ago

I think this is already fixed (just forgot to handle this issue), right? I see all the fonts.

jploch commented 1 year ago

Nice! Seems to be fixed now. Thank you!