Hacker News new | ask | show | jobs
by sings 926 days 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%...

[2]: https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/...

1 comments

Ooh nice! Didn't think about checking that. 15kb or maybe 30kb sounds indeed very good.