[subset-cff] Micro-optimize
This commit is contained in:
parent
a24d4e9261
commit
c947652768
|
@ -718,13 +718,13 @@ struct subr_subsetter_t
|
||||||
if (!plan->old_gid_for_new_gid (i, &glyph))
|
if (!plan->old_gid_for_new_gid (i, &glyph))
|
||||||
{
|
{
|
||||||
/* add an endchar only charstring for a missing glyph if CFF1 */
|
/* add an endchar only charstring for a missing glyph if CFF1 */
|
||||||
if (endchar_op != OpCode_Invalid) buffArray[i].push (endchar_op);
|
if (endchar_op != OpCode_Invalid) buffArray.arrayZ[i].push (endchar_op);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
unsigned int fd = acc.fdSelect->get_fd (glyph);
|
unsigned int fd = acc.fdSelect->get_fd (glyph);
|
||||||
if (unlikely (fd >= acc.fdCount))
|
if (unlikely (fd >= acc.fdCount))
|
||||||
return false;
|
return false;
|
||||||
if (unlikely (!encode_str (get_parsed_charstring (i), fd, buffArray[i])))
|
if (unlikely (!encode_str (get_parsed_charstring (i), fd, buffArray.arrayZ[i])))
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue