[instancer] When partial instancing, subset LigCaretList after VarStore instantiation

This commit is contained in:
Qunxin Liu 2023-11-02 11:14:48 -07:00 committed by Behdad Esfahbod
parent f57c64d825
commit 413af0a9b2
10 changed files with 15 additions and 1 deletions

View file

@ -664,7 +664,6 @@ struct GDEFVersion1_2
out->version.minor = version.minor;
bool subset_glyphclassdef = out->glyphClassDef.serialize_subset (c, glyphClassDef, this, nullptr, false, true);
bool subset_attachlist = out->attachList.serialize_subset (c, attachList, this);
bool subset_ligcaretlist = out->ligCaretList.serialize_subset (c, ligCaretList, this);
bool subset_markattachclassdef = out->markAttachClassDef.serialize_subset (c, markAttachClassDef, this, nullptr, false, true);
bool subset_markglyphsetsdef = false;
@ -702,6 +701,7 @@ struct GDEFVersion1_2
subset_varstore = out->varStore.serialize_subset (c, varStore, this, c->plan->gdef_varstore_inner_maps.as_array ());
}
if (subset_varstore)
{
out->version.minor = 3;
@ -713,6 +713,8 @@ struct GDEFVersion1_2
c->serializer->revert (snapshot_version0);
}
bool subset_ligcaretlist = out->ligCaretList.serialize_subset (c, ligCaretList, this);
return_trace (subset_glyphclassdef || subset_attachlist ||
subset_ligcaretlist || subset_markattachclassdef ||
(out->version.to_int () >= 0x00010002u && subset_markglyphsetsdef) ||

Binary file not shown.

View file

@ -0,0 +1,11 @@
FONTS:
AnekBangla-subset.ttf
PROFILES:
default.txt
SUBSETS:
*
INSTANCES:
wght=300

View file

@ -75,6 +75,7 @@ if get_option('experimental_api')
'update_def_wght',
'empty_region_vardata',
'feature_variations_partial_instance',
'gdef_partial_instance',
]
endif