mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-19 22:11:04 +01:00
[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:
1 parent
2ba0b9ee94
commit
a141e25c42
1 file changed
+1
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user