oxume
CDCloudflare Developers
•Created by oxume on 12/31/2023 in #general-help
Cloudflare Fonts support for text= parameter?
Google Fonts supports passing in the string itself you'll use the font with, and only returns those specific characters.
I have the following, which works locally, fetches the odd characters I need and use only once on my page.
When Cloudflare Fonts transforms this, it fetches the latin and latin-ext characters, but misses the other characters, resulting in broken text. This also results in fetching 41+96 kB of fonts instead of the 2.6 kB I need. As this results in broken text, this seems like a case where it should fallback and avoid rewriting the request, at least until the full Google Fonts css2 API is supported.
1 replies