Example #1
0
def parseLigature(lines, font, _lookupMap=None):
	mapping = {}
	for line in lines:
		assert len(line) >= 2, line
		line = makeGlyphs(line)
		mapping[tuple(line[1:])] = line[0]
	return otl.buildLigatureSubstSubtable(mapping)
Example #2
0
def parseLigature(lines, font, _lookupMap=None):
	mapping = {}
	for line in lines:
		assert len(line) >= 2, line
		line = makeGlyphs(line)
		mapping[tuple(line[1:])] = line[0]
	return otl.buildLigatureSubstSubtable(mapping)
Example #3
0
 def build(self):
     subtable = otl.buildLigatureSubstSubtable(self.ligatures)
     return self.buildLookup_([subtable])
Example #4
0
 def build(self):
     subtable = otl.buildLigatureSubstSubtable(self.ligatures)
     return self.buildLookup_([subtable])