mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 23:11:04 +01:00
[subset-repacker] bug fix: copy markFilteringSet field if exists (#5579)
This commit is contained in:
1 parent
5b2940d696
commit
fdb80534e2
1 file changed
+9
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user