[serialize] FeatureVariations subset->copy
This commit is contained in:
parent
fa8c4ba811
commit
e33ad25222
|
@ -1984,10 +1984,10 @@ struct FeatureVariations
|
||||||
return (this+record.substitutions).find_substitute (feature_index);
|
return (this+record.substitutions).find_substitute (feature_index);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool subset (hb_subset_context_t *c) const
|
FeatureVariations* copy (hb_serialize_context_t *c) const
|
||||||
{
|
{
|
||||||
TRACE_SUBSET (this);
|
TRACE_SERIALIZE (this);
|
||||||
return_trace (c->serializer->embed (*this));
|
return_trace (c->embed (*this));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool sanitize (hb_sanitize_context_t *c) const
|
bool sanitize (hb_sanitize_context_t *c) const
|
||||||
|
|
|
@ -2680,7 +2680,7 @@ struct GSUBGPOS
|
||||||
out);
|
out);
|
||||||
|
|
||||||
if (version.to_int () >= 0x00010001u)
|
if (version.to_int () >= 0x00010001u)
|
||||||
out->featureVars.serialize_subset (c, this+featureVars, out);
|
out->featureVars.serialize_copy (c->serializer, this+featureVars, out);
|
||||||
|
|
||||||
return_trace (true);
|
return_trace (true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue