Munter / subfont

Command line tool to optimize your webfont loading. Aggressive subsetting based on your font use, self-hosting of Google fonts and preloading
MIT License
1.56k stars 29 forks source link

Convert the unused variant fonts to the specified formats instead of letting them through as-is #127

Closed papandreou closed 4 years ago

papandreou commented 4 years ago

When you run eg. subfont --formats=woff2 on a website with self-hosted fonts in another set of formats, we leave the unused variants as-is. Would be nice to convert them to woff2.

papandreou commented 4 years ago

Changed my mind about this after playing around with it for a bit. It's better to ensure that the unused variants use exactly the same files as the fallback fonts so they don't end up being downloaded twice.