TT2020 icon indicating copy to clipboard operation
TT2020 copied to clipboard

lighter font versions for web

Open syffs opened this issue 2 years ago • 2 comments

SVG files can be so small that I'm wondering what makes these font files so heavy (style E woff2 ~1.7M) ?

Would it be possible to build lighter versions of these font for the web like 100-200K max

syffs avatar Jul 02 '22 21:07 syffs

@syffs Why can't you subset the font?

ctrlcctrlv avatar Jul 02 '22 23:07 ctrlcctrlv

@ctrlcctrlv not sure how to that ? like subsetting to a more restricted charset than UTF-8 ? Now, looking at glyphs, it does look like vector paths are quite unoptimized.

syffs avatar Jul 02 '22 23:07 syffs

@syffs Correct. E.g. harfbuzz can subset for you. It's out of scope for me to explain in this repo how to subset I think, but solutions exist.

Yes the paths are not optimized, I was going for realism above optimization. If you want to smooth out my paths with a third party utility like MFEKpathops or FontForge that's up to you.

ctrlcctrlv avatar Sep 23 '22 15:09 ctrlcctrlv