[subset] remove unnecessary check on name IDs

See: https://learn.microsoft.com/en-us/typography/opentype/spec/features_ae
The spec says they are expected to be in the font-specific name ID range (256–32767),
though that is not a requirement in this Feature Parameters specification.
This commit is contained in:
Qunxin Liu authored and Behdad Esfahbod committed 2024-08-30 11:19:35 -06:00
1 parent 2ba0b9ee94
commit a141e25c42
1 file changed
+1 -2
+1 -2
View File
@@ -646,8 +646,7 @@ struct FeatureParamsCharacterVariants
return;
unsigned last_name_id = (unsigned) firstParamUILabelNameID + (unsigned) numNamedParameters - 1;
if (last_name_id >= 256 && last_name_id <= 32767)
nameids_to_retain->add_range (firstParamUILabelNameID, last_name_id);
nameids_to_retain->add_range (firstParamUILabelNameID, last_name_id);
}
bool subset (hb_subset_context_t *c) const