Typophile

Question about OT Scripting and file size

ebensorkin

I was thinking about the practical issues involved in using Calt/Liga for text faces today, and I started wondering about how much larger a file might be if it has has 10, 50, 100, 1000 or 10,000 feature entries. And what the real practical limitations might be in terms of the file size, for the Operating System (OSX, Windows Vista, XP etc.) , and applications, any one of which might potentially choke on an overly big file. Maybe file size per se isn’t the only technical issue. I am BTW deliberately leaving out any mention of managing large #s of features which is essentially a different issue.

It’s a broad question, and I know the answers are probably very specific and potentially very case dependent.

Still, what is your take on this? Have you run into problems regarding this kind of thing as an OS, application, or font developer you would like to share?

There’s a 64K limit on the size of a subtable offset (I think I have that right). This can be worked around with the “extension” function and appropriate subtable breaks, although not all possible clients will recognize that. Usually this comes up with kerning for really big fonts (e.g. Arno Pro).

There are a couple of size limits related to glyphs rather than features, as well:

1) Mac OS used to have a limit on the total length of glyph name strings, as well. That has been fixed at some point.

2) There’s the limit of 64K glyphs in the font.

Regards,

T

I’m playing with interleaved contextual and stylistic set stuff for display type that goes way beyond anything that I would anticipate in a text face, and I have not hit any size limits in terms of software support — at least not in my test environments, which in this case are InDesign and WPF —, although I have hit (anticipated) feature implementation issues. Sergey Malkin at MS confirms that my VOLT source for this project is the largest and most complex he has seen (a record I previously held with SBL Hebrew), and the GSUB table takes up something like 40% of the compiled font. This is the stuff I’ll be showing at TypeCon this year.

I can’t imagine anything on that magnitude being necessary in a text face, even presuming that some characters have multiple forms for improved fit. Also, from my perspective there is an important net gain in not using ligature glyphs any more, since it massively simplifies the GPOS mark positioning work.

PS. All my OTL work is done in VOLT, so I don’t know what kind of tool issues you might hit with FontLab/FDK.

Captured from web.archive.org on 15 Oct 2008. view this capture