logoalt Hacker News

londons_explore • yesterday at 7:08 PM • 0 replies • view on HN

Related: for a project I needed readable vector fonts in as few bytes as possible. Had to handle full Unicode and any font face.

Setting Claude on the challenge and giving some pointers (use a set of ANS coders! Be lossy as long as there are no errors when rendered!), I was amazed that a typical font can be rendered in just ~40 bytes per used character.

It saddens me that despite this, plenty of websites ship hundreds of kilobytes of custom fonts!