[subset] keep features that have FeatureParams and the tag is "size"

This commit is contained in:
Qunxin Liu authored and Behdad Esfahbod committed 2021-11-19 13:31:25 -07:00
1 parent e88fc41ef3
commit ca418cac74
9 files changed
+20 -3

No files matched your search

+6 -2
View File
@@ -3783,8 +3783,12 @@ struct GSUBGPOS
// http://lists.freedesktop.org/archives/harfbuzz/2012-November/002660.html
continue;
if (f.featureParams.is_null ()
&& !f.intersects_lookup_indexes (lookup_indices)
if (!f.featureParams.is_null () &&
tag == HB_TAG ('s', 'i', 'z', 'e'))
continue;
if (!f.intersects_lookup_indexes (lookup_indices)
#ifndef HB_NO_VAR
&& !alternate_feature_indices.has (i)
#endif
+1
View File
@@ -40,6 +40,7 @@ EXTRA_DIST += \
expected/layout.tinos \
expected/layout.duplicate_features \
expected/layout.unsorted_featurelist \
expected/layout.drop_feature \
expected/cmap \
expected/cmap14 \
expected/sbix \
+2 -1
View File
@@ -38,7 +38,8 @@ TESTS = \
tests/layout.tinos.tests \
tests/layout.duplicate_features.tests \
tests/layout.unsorted_featurelist.tests \
tests/sbix.tests \
tests/layout.drop_feature.tests \
tests/sbix.tests \
tests/variable.tests \
tests/glyph_names.tests \
tests/math.tests \
@@ -0,0 +1,10 @@
FONTS:
SpectralSC-ExtraLightItalic.ttf
PROFILES:
default.txt
glyph-names.txt
notdef-outline.txt
SUBSETS:
*
+1
View File
@@ -32,6 +32,7 @@ tests = [
'layout.tinos',
'layout.duplicate_features',
'layout.unsorted_featurelist',
'layout.drop_feature',
'cmap',
'cmap14',
'sbix',