コード例 #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)
コード例 #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)
コード例 #3
0
ファイル: builder.py プロジェクト: shannonyu/fonttools
 def build(self):
     subtable = otl.buildLigatureSubstSubtable(self.ligatures)
     return self.buildLookup_([subtable])
コード例 #4
0
ファイル: builder.py プロジェクト: jamesgk/fonttools
 def build(self):
     subtable = otl.buildLigatureSubstSubtable(self.ligatures)
     return self.buildLookup_([subtable])