
How Many Glyphs Can a Font Include?
|
369
know precisely what font is being used to render specic characters. Is it the font being
tested? If the font being tested is broken, is a Fallback Font being used instead?
In any case, Composite Fonts and Fallback Fonts are similar in that they can allow the
developer and user to address more code points than in standard font instances that have
a fairly hard 64K glyph limit. Composite Fonts are further explored, in terms of specic
formats, at the end of this chapter.
Breaking the 64K Glyph Barrier
Regardless of the font format, there is a very hard and xed limit in terms of the number
of glyphs that can be addressed or included in a single font instance. OpenType and True-
Type fonts, along with the CIDFont resource, can include a maximum of 64K glyphs. For
OpenType fonts with name-keyed ‘CFF’ tables, the limit is actually 64,000 glyphs. For
TrueType fonts, OpenType fonts with ‘glyf ’ tables, OpenType fonts with CID-keyed ‘CFF’
tables, and CIDFont resources, the maximum number of glyphs is genuinely 64K, mean-
ing 65,535 glyphs.
Although this is oen a point of confusion, I should point out that the 64K glyph barrier
is completely unrelated to the total number of code points that can be addressed in the
individual ‘cmap’ subtables of OpenType and TrueType fonts, and the ability to address
Unicode code points that are beyond the BMP. CMa ...