Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR aims to help somewhat with #126 by removing all font files that aren't actually used in the project.
I determined which were used very manually, by grepping through all the
.tresand.tscnfiles.Assuming I didn't get this wrong anywhere, this should be a straight win for export size! The only downside is that if later we want to use one of the font variations that was removed, we'll need to re-download it from the source.
Here are the font sizes before:
And here is after:
We could reduce it even further if we only used a sans-serif font for Japanese, which we're already doing for Bengali.
If you'd be OK with removing the Japanese serif font, I'd be happy to update the PR for that! (I'd need to add back some of the sans-serif fonts that I removed, so that they could be used as fallbacks on CormorantGaramond, which means the total size will probably only go down by ~11mb)