[beyond-64k] Fix subsetting of maxp

This commit is contained in:
Behdad Esfahbod 2023-04-20 11:42:45 -06:00
parent 7f629c0df2
commit 64ecf8720c
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ struct maxp
maxp *maxp_prime = c->serializer->embed (this);
if (unlikely (!maxp_prime)) return_trace (false);
maxp_prime->numGlyphs = c->plan->num_output_glyphs ();
maxp_prime->numGlyphs = hb_min (c->plan->num_output_glyphs (), 0xFFFFu);
if (maxp_prime->version.major == 1)
{
const maxpV1Tail *src_v1 = &StructAfter<maxpV1Tail> (*this);