mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-26 01:11:25 +01:00
[subset-cff] Disable sharing when packing charstring INDEXes
Saves another 8%ish.
This commit is contained in:
1 parent
2cadacad6c
commit
bab8ec58b0
2 files changed
+5
-5
No files matched your search
@@ -696,7 +696,7 @@ static bool _serialize_cff1 (hb_serialize_context_t *c,
|
||||
if (unlikely (!dest)) return false;
|
||||
c->push ();
|
||||
if (likely (dest && dest->serialize (c, plan.subset_localsubrs[i])))
|
||||
subrs_link = c->pop_pack ();
|
||||
subrs_link = c->pop_pack (false);
|
||||
else
|
||||
{
|
||||
c->pop_discard ();
|
||||
@@ -732,7 +732,7 @@ static bool _serialize_cff1 (hb_serialize_context_t *c,
|
||||
if (unlikely (!cs)) return false;
|
||||
c->push ();
|
||||
if (likely (cs->serialize (c, plan.subset_charstrings)))
|
||||
plan.info.char_strings_link = c->pop_pack ();
|
||||
plan.info.char_strings_link = c->pop_pack (false);
|
||||
else
|
||||
{
|
||||
c->pop_discard ();
|
||||
@@ -815,7 +815,7 @@ static bool _serialize_cff1 (hb_serialize_context_t *c,
|
||||
CFF1Subrs *dest = c->start_embed <CFF1Subrs> ();
|
||||
if (unlikely (!dest)) return false;
|
||||
if (likely (dest->serialize (c, plan.subset_globalsubrs)))
|
||||
c->pop_pack ();
|
||||
c->pop_pack (false);
|
||||
else
|
||||
{
|
||||
c->pop_discard ();
|
||||
|
||||
@@ -334,7 +334,7 @@ static bool _serialize_cff2 (hb_serialize_context_t *c,
|
||||
if (unlikely (!dest)) return false;
|
||||
c->push ();
|
||||
if (likely (dest->serialize (c, plan.subset_localsubrs[i])))
|
||||
subrs_link = c->pop_pack ();
|
||||
subrs_link = c->pop_pack (false);
|
||||
else
|
||||
{
|
||||
c->pop_discard ();
|
||||
@@ -365,7 +365,7 @@ static bool _serialize_cff2 (hb_serialize_context_t *c,
|
||||
if (unlikely (!cs)) return false;
|
||||
c->push ();
|
||||
if (likely (cs->serialize (c, plan.subset_charstrings)))
|
||||
plan.info.char_strings_link = c->pop_pack ();
|
||||
plan.info.char_strings_link = c->pop_pack (false);
|
||||
else
|
||||
{
|
||||
c->pop_discard ();
|
||||
|
||||
Reference in new issue
Block a user