[subset] Drop feature params when built without them

With HB_NO_LAYOUT_FEATURE_PARAMS, FeatureParams::sanitize() checks
nothing and collect_name_ids() keeps none of their names, yet
FeatureParams::subset() still copied the params by their tag.
Return false there too, so the subsetter drops them, like the other
FeatureParams readers do in that configuration.

Assisted-by: Claude
This commit is contained in:
Mar authored and Behdad Esfahbod committed 2026-10-19 12:04:29 -06:00
1 parent 4a60bf8333
commit a1d34fedce
1 file changed
+3
+3
View File
@@ -750,6 +750,9 @@ struct FeatureParams
bool subset (hb_subset_context_t *c, const Tag* tag) const
{
#ifdef HB_NO_LAYOUT_FEATURE_PARAMS
return false;
#endif
TRACE_SUBSET (this);
if (!tag) return_trace (false);
if (*tag == HB_TAG ('s','i','z','e') && hb_barrier ())