[name] Minor changes

This commit is contained in:
Behdad Esfahbod 2019-05-02 16:25:00 -07:00
parent 431b6e1c44
commit 097bb3f0af
1 changed files with 3 additions and 3 deletions

View File

@ -106,7 +106,7 @@ struct NameRecord
HBUINT16 languageID; /* Language ID. */ HBUINT16 languageID; /* Language ID. */
HBUINT16 nameID; /* Name ID. */ HBUINT16 nameID; /* Name ID. */
HBUINT16 length; /* String length (in bytes). */ HBUINT16 length; /* String length (in bytes). */
OffsetTo<UnsizedArrayOf<HBUINT8>> NNOffsetTo<UnsizedArrayOf<HBUINT8>>
offset; /* String offset from start of storage area (in bytes). */ offset; /* String offset from start of storage area (in bytes). */
public: public:
DEFINE_SIZE_STATIC (12); DEFINE_SIZE_STATIC (12);
@ -261,7 +261,7 @@ struct name
bool serialize (hb_serialize_context_t *c, bool serialize (hb_serialize_context_t *c,
const name *source_name, const name *source_name,
const hb_subset_plan_t *plan, const hb_subset_plan_t *plan,
const hb_vector_t<unsigned int>& name_record_idx_to_retain) const hb_sorted_vector_t<unsigned int>& name_record_idx_to_retain)
{ {
TRACE_SERIALIZE (this); TRACE_SERIALIZE (this);
@ -287,7 +287,7 @@ struct name
bool subset (hb_subset_context_t *c) const bool subset (hb_subset_context_t *c) const
{ {
hb_subset_plan_t *plan = c->plan; hb_subset_plan_t *plan = c->plan;
hb_vector_t<unsigned int> name_record_idx_to_retain; hb_sorted_vector_t<unsigned int> name_record_idx_to_retain;
get_subsetted_ids (this, plan, name_record_idx_to_retain); get_subsetted_ids (this, plan, name_record_idx_to_retain);