[beyond-64k] Fix subsetting of maxp
This commit is contained in:
parent
7f629c0df2
commit
64ecf8720c
|
@ -100,7 +100,7 @@ struct maxp
|
||||||
maxp *maxp_prime = c->serializer->embed (this);
|
maxp *maxp_prime = c->serializer->embed (this);
|
||||||
if (unlikely (!maxp_prime)) return_trace (false);
|
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)
|
if (maxp_prime->version.major == 1)
|
||||||
{
|
{
|
||||||
const maxpV1Tail *src_v1 = &StructAfter<maxpV1Tail> (*this);
|
const maxpV1Tail *src_v1 = &StructAfter<maxpV1Tail> (*this);
|
||||||
|
|
Loading…
Reference in New Issue