[VARC/test] Adjust test

This subset font is from a different source and has
different glyphs.
This commit is contained in:
Behdad Esfahbod 2023-12-17 13:01:04 -07:00
parent 22e02ccb47
commit 28385ec07e

View File

@ -428,14 +428,14 @@ class SubsetTest:
def test_varComposite(self): def test_varComposite(self):
fontpath = self.getpath("..", "..", "ttLib", "data", "varc-ac00-ac01.ttf") fontpath = self.getpath("..", "..", "ttLib", "data", "varc-ac00-ac01.ttf")
origfont = TTFont(fontpath) origfont = TTFont(fontpath)
assert len(origfont.getGlyphOrder()) == 6 assert len(origfont.getGlyphOrder()) == 11
subsetpath = self.temp_path(".ttf") subsetpath = self.temp_path(".ttf")
subset.main([fontpath, "--unicodes=ac00", "--output-file=%s" % subsetpath]) subset.main([fontpath, "--unicodes=ac00", "--output-file=%s" % subsetpath])
subsetfont = TTFont(subsetpath) subsetfont = TTFont(subsetpath)
assert len(subsetfont.getGlyphOrder()) == 4 assert len(subsetfont.getGlyphOrder()) == 6
subset.main([fontpath, "--unicodes=ac01", "--output-file=%s" % subsetpath]) subset.main([fontpath, "--unicodes=ac01", "--output-file=%s" % subsetpath])
subsetfont = TTFont(subsetpath) subsetfont = TTFont(subsetpath)
assert len(subsetfont.getGlyphOrder()) == 5 assert len(subsetfont.getGlyphOrder()) == 8
def test_timing_publishes_parts(self): def test_timing_publishes_parts(self):
fontpath = self.compile_font(self.getpath("TestTTF-Regular.ttx"), ".ttf") fontpath = self.compile_font(self.getpath("TestTTF-Regular.ttx"), ".ttf")