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

This commit is contained in:
Qunxin Liu 2021-11-17 16:42:08 -08:00 committed by Behdad Esfahbod
parent e88fc41ef3
commit ca418cac74
9 changed files with 20 additions and 3 deletions

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

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 \

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 \

Binary file not shown.

View File

@ -0,0 +1,10 @@
FONTS:
SpectralSC-ExtraLightItalic.ttf
PROFILES:
default.txt
glyph-names.txt
notdef-outline.txt
SUBSETS:
*

View File

@ -32,6 +32,7 @@ tests = [
'layout.tinos',
'layout.duplicate_features',
'layout.unsorted_featurelist',
'layout.drop_feature',
'cmap',
'cmap14',
'sbix',