-
-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(cli): rework font downloading #733
Conversation
🦋 Changeset detectedLatest commit: 7d203d1 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Okay, I completely forgot about the tests, give me some more time :D |
Thanks for making this PR! 🎉 I'll wait to review after the tests are written so I have a better idea of what the expected outputs are. 👍
Google changes things a lot which includes removing things so this should be a non-issue. See related: #578 |
Fixes the bug that caused the non-variable Google fonts to be downloaded twice, to the same target file, causing indeterministic file changes and slightly broken font files. See fontsource#712 for more context. Fixes fontsource#712.
Should I also add a changeset? If yes, is this a patch level change? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huge improvement from before! Thank you! A small suggestion, but otherwise the code looks great. 🎉
I also went ahead and made the changeset, so you don't need to worry about that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks good! Once again, thank you for making this PR! 🎉
Fixes the bug that caused the non-variable Google fonts to be downloaded twice, to the same target file, causing indeterministic file changes and slightly broken font files. See #712 for more context.
Fixes #712.
I ran my WOFF size checking script on the output of this PR, and all the previous errors are gone (except manual fonts), so it seems to work.
There are some unexpected changes relative to font-files@6332265:
Some fonts are completely missing, but they also don't show up on the Google Fonts website for me:
A subset is missing from one font, but again, it doesn't show up in the raw metadata for me either: