[subset-repacker] bug fix: copy markFilteringSet field if exists (#5579)

This commit is contained in:
Qunxin Liu authored and GitHub committed 2025-09-23 15:32:41 -06:00
1 parent 5b2940d696
commit fdb80534e2
1 file changed
+9
+9
View File
@@ -87,6 +87,12 @@ struct Lookup : public OT::Lookup
return lookupType == extension_type (table_tag);
}
bool use_mark_filtering_set () const
{
unsigned flag = lookupFlag;
return flag & 0x0010u;
}
bool make_extension (gsubgpos_graph_context_t& c,
unsigned this_index)
{
@@ -220,6 +226,9 @@ struct Lookup : public OT::Lookup
}
hb_memcpy (buffer, v->obj.head, v->table_size());
if (use_mark_filtering_set ())
hb_memcpy (buffer + new_size - 2, v->obj.tail - 2, 2);
v->obj.head = buffer;
v->obj.tail = buffer + new_size;