How do you split fonts into multiple files with unicode-range
?
#1648
vnphanquang
started this conversation in
General
Replies: 1 comment 9 replies
-
I'd used https://github.com/fonttools/fonttools for that. This command to be specific: https://fonttools.readthedocs.io/en/latest/subset/index.html Refer https://stackoverflow.com/a/49755188/11613622, you can also refer the other answer (it's an npm package instead of a python one, haven't tried it though). Not sure about the caveats though, but IMO should always save the bandwidth unless one is using all sorts of unicode ranges in their app. Might not work (properly) in legacy browsers: https://caniuse.com/font-unicode-range |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was searching the web for ways to optimize fonts and thought hmm, let's see how the vue/vite eco does it (always a good inspiration pool). I see here fonts are split into subsets with different unicode ranges. This is very good imo for most of my practical use cases.
Can anyone share the strategy for how to do this? Is there a dedicated tool? Any caveats?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions