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

Request with font weight not working #8

Closed jploch closed 1 year ago

jploch commented 1 year ago

This is not working for me (works with Google Fonts): https://api.fonts.coollabs.io/css2?family=Aguafina+Script:400&display=swap

While this is working: https://api.fonts.coollabs.io/css2?family=Aguafina+Script&display=swap

Is this a bug or is there anything else to consider, when loading font weights?

jploch commented 1 year ago

sorry this was my fault, after reading the the new API docs for CSS2 it became clear that the old way of getting the font weight no longer works.

But it works perfectly using the new way: https://api.fonts.coollabs.io/css2?family=Roboto:wght@300;900&display=swap