Exemple #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)
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)
Exemple #3
0
 def build(self):
     subtable = otl.buildLigatureSubstSubtable(self.ligatures)
     return self.buildLookup_([subtable])
Exemple #4
0
 def build(self):
     subtable = otl.buildLigatureSubstSubtable(self.ligatures)
     return self.buildLookup_([subtable])