mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-12-01 02:23:59 +01:00
[subset] add null element in _filter_tag_list.
This commit is contained in:
1 parent
216cf5946b
commit
30309ec8d3
1 file changed
+3
-3
@@ -119,6 +119,9 @@ static bool _filter_tag_list(hb_vector_t<hb_tag_t>* tags, /* IN/OUT */
|
||||
out.push (tag);
|
||||
}
|
||||
|
||||
// The collect function needs a null element to signal end of the array.
|
||||
out.push (HB_TAG_NONE);
|
||||
|
||||
hb_swap (out, *tags);
|
||||
return removed;
|
||||
}
|
||||
@@ -145,9 +148,6 @@ static void _collect_layout_indices (hb_subset_plan_t *plan,
|
||||
|| !plan->check_success (!scripts.in_error ()) || !scripts)
|
||||
return;
|
||||
|
||||
// The collect function needs a null element to signal end of the array.
|
||||
features.push (0);
|
||||
scripts.push (0);
|
||||
layout_collect_func (plan->source,
|
||||
T::tableTag,
|
||||
retain_all_scripts ? nullptr : scripts.arrayZ,
|
||||
|
||||
Reference in new issue
Block a user