add test to repro AttributeError when getAlternateGlyphs for empty lookups
https://github.com/fonttools/fonttools/issues/2276
This commit is contained in:
parent
ae982abf5c
commit
bd618d0117
@ -65,7 +65,7 @@ class BuilderTest(unittest.TestCase):
|
||||
spec9a spec9b spec9c1 spec9c2 spec9c3 spec9d spec9e spec9f spec9g
|
||||
spec10
|
||||
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
|
||||
ZeroValue_SinglePos_horizontal ZeroValue_SinglePos_vertical
|
||||
ZeroValue_PairPos_horizontal ZeroValue_PairPos_vertical
|
||||
|
11
Tests/feaLib/data/bug2276.fea
Normal file
11
Tests/feaLib/data/bug2276.fea
Normal 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;
|
Loading…
x
Reference in New Issue
Block a user