add test to repro AttributeError when getAlternateGlyphs for empty lookups

https://github.com/fonttools/fonttools/issues/2276
This commit is contained in:
Cosimo Lupo 2021-04-22 12:21:30 +01:00
parent ae982abf5c
commit bd618d0117
2 changed files with 12 additions and 1 deletions

View File

@ -65,7 +65,7 @@ class BuilderTest(unittest.TestCase):
spec9a spec9b spec9c1 spec9c2 spec9c3 spec9d spec9e spec9f spec9g spec9a spec9b spec9c1 spec9c2 spec9c3 spec9d spec9e spec9f spec9g
spec10 spec10
bug453 bug457 bug463 bug501 bug502 bug504 bug505 bug506 bug509 bug453 bug457 bug463 bug501 bug502 bug504 bug505 bug506 bug509
bug512 bug514 bug568 bug633 bug1307 bug1459 bug512 bug514 bug568 bug633 bug1307 bug1459 bug2276
name size size2 multiple_feature_blocks omitted_GlyphClassDef name size size2 multiple_feature_blocks omitted_GlyphClassDef
ZeroValue_SinglePos_horizontal ZeroValue_SinglePos_vertical ZeroValue_SinglePos_horizontal ZeroValue_SinglePos_vertical
ZeroValue_PairPos_horizontal ZeroValue_PairPos_vertical ZeroValue_PairPos_horizontal ZeroValue_PairPos_vertical

View File

@ -0,0 +1,11 @@
# https://github.com/fonttools/fonttools/issues/2276
lookup EMPTY {
# pass
} EMPTY;
feature ss01 {
sub a by a.alt1;
lookup EMPTY;
} ss01;
feature aalt {
feature ss01;
} aalt;