boring-expansion-spec icon indicating copy to clipboard operation
boring-expansion-spec copied to clipboard

[`maxp`] Relax

Open behdad opened this issue 4 years ago • 1 comments

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.

behdad avatar Sep 14 '21 16:09 behdad

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.

behdad avatar Feb 16 '22 00:02 behdad