sarasa-gothic: rewrite: TTC and fixed-output #50974
Merged
+12
−15
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.
Rewritten to use TTC archive instead of the TTF one. It's also now fixed-output.
Motivation for this change
The current sarasa-gothic font takes up 2.2GB in the Nix store. This can be reduced to 212MB by using the TTC archive instead of the TTF one, which shares data between individual fonts and has a much smaller size than the sum of individual fonts.
It was written like
wqy_zenhei
. It, as it has been, does not usefetchzip
becausep7zip
is needed.Also I've made it fixed-output like
wqy_zenhei
. This should avoid unnecessary re-builds.I have not kept
hydraPlatforms = []
due to the size having drastically decreased. Is this acceptable? (cc @Mic92)nix path-info -S
output showing the improvement:Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)