8 ms·
The large size is due to the number of glyphs and alternate styles. If you want a smaller footprint, I'd suggest subsetting the font as needed. There are also
by sings 3y ago
The large size is due to the number of glyphs and alternate styles. If you want a smaller footprint, I'd suggest subsetting the font as needed.
There are also 6 ready-made subsets[1], each about 15kb, matching these unicode ranges. These are set up to work with the @font-face unicode-range property[2].
A: U+0020-00BF
B: U+00C0-00FF
C: U+0100-01FF
D: U+0200-0FFF
E: U+1000-1FFF
F: U+2000-FFFF
[1]: https://github.com/reddit/redditsans/tree/main/fonts/Reddit%20Sans/subsets https://github.com/reddit/redditsans/tree/main/fonts/Reddit%...
[2]: https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/unicode-range https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/...
- riidom 3y agoOoh nice! Didn't think about checking that. 15kb or maybe 30kb sounds indeed very good.