fontsource / google-font-metadata

A metadata generator that fetches and parses the Google Fonts API.
MIT License
29 stars 9 forks source link

fix: use defsubset if there is no comment in css #133

Closed ayuhito closed 10 months ago

ayuhito commented 10 months ago

Closes #132. If the generated CSS does not include a comment in the CSS to parse the subset, fallback to the default subset for generating APIv2 and variable metadata.

This does not address the underlying issue where Google is not providing the static instances to the fonts in question, however, that's an upstream issue which they may choose to solve on their own. Manually verifying it ourselves is more likely to be harder to maintain and it would require a lot more manual intervention on our end to keep things up to date.