[subset] Add test for subset.Options
Currently fails. https://github.com/behdad/fonttools/issues/413
This commit is contained in:
parent
1d4fb7925b
commit
59b702c5ca
@ -101,6 +101,15 @@ class SubsetTest(unittest.TestCase):
|
||||
subsetfont = TTFont(subsetpath)
|
||||
self.expect_ttx(subsetfont, self.getpath("expect_keep_colr.ttx"), ["GlyphOrder", "hmtx", "glyf", "COLR", "CPAL"])
|
||||
|
||||
def test_options(self):
|
||||
# https://github.com/behdad/fonttools/issues/413
|
||||
opt1 = subset.Options()
|
||||
self.assertTrue('Xyz-' not in opt1.layout_features)
|
||||
opt2 = subset.Options()
|
||||
opt2.layout_features.append('Xyz-')
|
||||
self.assertTrue('Xyz-' in opt2.layout_features)
|
||||
self.assertTrue('Xyz-' not in opt1.layout_features)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
Loading…
x
Reference in New Issue
Block a user