nuxt / fonts

Plug-and-play web font optimization and configuration for Nuxt apps.
https://fonts.nuxt.com
MIT License
380 stars 4 forks source link

adobe fonts provider #11

Closed danielroe closed 2 months ago

qwerzl commented 2 months ago

@danielroe If nobody's working on this, I'd love to work on this provider.

I'm currently thinking about specifying a kit id in the module config, then in providers/adobe.ts get the info of this kit (weights, families) as metadata and add all the fonts provided by the kit's CSS if one of the requested fonts matches because Adobe Fonts doesn't provide an endpoint to get CSS for a single font.

Also, there is an older Adobe Fonts API on https://fonts.adobe.com/docs/api/kits. Looks like the newer one requires an API key to access it. Is it okay to use the older API endpoints?

danielroe commented 2 months ago

That would be great! It looks like we can use the older API, they just encourage use of the new one.