def test_buildMarkGlyphSetsDef(self):
     marksets = builder.buildMarkGlyphSetsDef(
         [{"acute", "grave"}, {"cedilla", "grave"}], self.GLYPHMAP)
     self.assertEqual(getXML(marksets.toXML),
                      '<MarkGlyphSetsDef>'
                      '  <MarkSetTableFormat value="1"/>'
                      '  <!-- MarkSetCount=2 -->'
                      '  <Coverage index="0">'
                      '    <Glyph value="grave"/>'
                      '    <Glyph value="acute"/>'
                      '  </Coverage>'
                      '  <Coverage index="1">'
                      '    <Glyph value="grave"/>'
                      '    <Glyph value="cedilla"/>'
                      '  </Coverage>'
                      '</MarkGlyphSetsDef>')
Esempio n. 2
0
 def test_buildMarkGlyphSetsDef_None(self):
     assert builder.buildMarkGlyphSetsDef(None, self.GLYPHMAP) is None
Esempio n. 3
0
 def test_buildMarkGlyphSetsDef_empty(self):
     assert builder.buildMarkGlyphSetsDef([], self.GLYPHMAP) is None
Esempio n. 4
0
 def buildGDEFMarkGlyphSetsDef_(self):
     sets = [None] * len(self.markFilterSets_)
     for glyphs, id in self.markFilterSets_.items():
         sets[id] = glyphs
     return otl.buildMarkGlyphSetsDef(sets, self.glyphMap)
 def test_buildMarkGlyphSetsDef_None(self):
     self.assertIsNone(builder.buildMarkGlyphSetsDef(None, self.GLYPHMAP))
 def test_buildMarkGlyphSetsDef_empty(self):
     self.assertIsNone(builder.buildMarkGlyphSetsDef([], self.GLYPHMAP))
Esempio n. 7
0
 def buildGDEFMarkGlyphSetsDef_(self):
     sets = [None] * len(self.markFilterSets_)
     for glyphs, id in self.markFilterSets_.items():
         sets[id] = glyphs
     return otl.buildMarkGlyphSetsDef(sets, self.glyphMap)