Reduce File size of .ttf

Hi, I have a typeface built using module and pixel logic. It’s heavily loaded, so it generates a 2.8 MB file when exported. It feels a bit slow. I’d disable subroutines as a first option.

My idea is to not remove the overlays because that’s part of the proposal.

What can I do to reduce the size of the .ttf export file?

(upload://wOp7WZ9Cq3X5LvDdlhWIniwF6TR.jpeg)

Subroutines are there to save space. The take a long time to compute and thous it sometimes it is better to disable it. But you should try enabling.

The size of the plain .otf file doesn’t really matter. Check how much the woff2 compression cil help – I suspect quite a bit. So the question is how to remove the file size that is send over the internet for webfonts. For desktop fonts, it doesnt really matter.

Keeping the overlaps might result in differences in rendering in different apps. Make sure you test everywhere where you like to use it.

And a complex font like this can slow down the rendering. But I how you are not using if for longer texts :wink:

Thanks Georg for the information,
It makes a lot of sense to me. If you’d like to take a look, here’s the link to the project.

Best regards

Subroutines are CFF/OTF only. TTFs use components:

In a TTF, make sure:

  • (auto)hinting is disabled,
  • components are kept: use the Keep Overlapping/Transformed Components custom parameters

This kind of complex font will not work in many environments. Font technology is not designed for this level of complexity, so you have to deal with it.