[serialize] FeatureVariations subset->copy
authorBehdad Esfahbod <behdad@behdad.org>
Tue, 7 May 2019 22:46:24 +0000 (15:46 -0700)
committerBehdad Esfahbod <behdad@behdad.org>
Tue, 7 May 2019 22:46:24 +0000 (15:46 -0700)
src/hb-ot-layout-common.hh
src/hb-ot-layout-gsubgpos.hh

index a527b39..153ee83 100644 (file)
@@ -1984,10 +1984,10 @@ struct FeatureVariations
     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);
-    return_trace (c->serializer->embed (*this));
+    TRACE_SERIALIZE (this);
+    return_trace (c->embed (*this));
   }
 
   bool sanitize (hb_sanitize_context_t *c) const
index 0b40314..5837e76 100644 (file)
@@ -2680,7 +2680,7 @@ struct GSUBGPOS
                         out);
 
     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);
   }