boring-expansion-spec
boring-expansion-spec copied to clipboard
[`maxp`] Relax
Version 1.0 can be used with TrueType fonts when backward-compatibility with legacy systems is required when such systems rejects TrueType fonts with a version 0.5 maxp table.
Otherwise, a version 0.5 maxp table is encouraged.
If maxp table is not present, then maxp.numGlyphs is presumed to be 0.
Note that API functions that currently return maxp.numGlyphs can choose to return other values, like number of glyphs with shapes (derived from loca table) instead, or if loca is missing, number of glyphs derived from hmtx table.
My latest thinking is that the font numGlyphs should be the maximum of that of maxp and loca tables. I've implemented that in HarfBuzz branch now.