mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 23:11:04 +01:00
[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:
1 parent
4a60bf8333
commit
a1d34fedce
1 file changed
+3
@@ -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 ())
|
||||
|
||||
Reference in new issue
Block a user