If I understand correctly, OpenType font files (.otf) can possess a maximum of 65,535 glyphs.

What, if any, is the maximum number of glyphs an OpenType Collection file (.otc) can hold?

  • 1
    A better reference for the maximum number of characters is the official specifications: "USHORT numGlyphs The number of glyphs in the font." (where USHORT is a "16-bit unsigned integer"). – usr2564301 Jun 8 '16 at 8:53

OpenType Collections are just bundles of multiple font files.

Each font within that collection is obviously limited by the maximum glyph limit, but as far as I'm aware there is no limit on the number of fonts contained within a collection. I can't find a defined limit either in any specification or in generators (i.e font editors).

Microsoft's OpenType specification defines the numFonts header (which holds the number of contained fonts) as a ULONG (a 32-bit unsigned integer) so technically there is a limit on the number. The maximun value of a 32-bit unsigned integer is 4,294,967,295. If we take that as the maximum number of fonts the maximum number of glyphs would be:

4,294,967,295 x 65,535 = 281,470,681,677,825

Your font collection would be unusable long before you reach that limit, though.

In reality you are more likely limited by the number of fonts your OS, or software can deal with and memory issues. Noto Sans CJK, for example comes in a number of different OTC collections. The "All-in-one super OTC" contains 36 font files and it is suggested "In limited memory case, use region specific OTF subsets." — which suggests memory is an issue long before you reach any maximum number of fonts.

| improve this answer | |
  • "For backward compatibility and simplicity, the description of the font collection file structure is using the term TrueType Collection though it should be understood that it is used for both CFF and TrueType outlines" – Cai Jun 8 '16 at 8:59
  • It actually applies to both TrueType and PostScript OpenType fonts (and TTC and OTC formats) – Cai Jun 8 '16 at 8:59
  • 1
    It's worth noting that file extension isn't always as clear-cut as it seems. Adobe's announcement of OTCs says "it seems that “ttc,” not “otc,” must be used as the filename extension for OpenType Collection fonts in order for them to be recognized" An OpenType Collection essentially is a TrueType Collection with the addition of the CFF table – Cai Jun 8 '16 at 9:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.