Пример #1
0
def makeCaretList(carets, font):
	self = ot.LigCaretList()
	self.Coverage = makeCoverage(carets.keys(), font)
	records = []
	for glyph in self.Coverage.glyphs:
		record = ot.LigGlyph()
		cvs = record.CaretValue = []
		for v in carets[glyph]:
			cv = ot.CaretValue()
			cv.Format = 1
			cv.Coordinate = v
			cvs.append(cv)
		record.CaretCount = len(record.CaretValue)
		records.append(record)
	self.LigGlyph = records
	self.LigGlyphCount = len(records)
	return self
Пример #2
0
def buildCaretValueForPoint(point):
    """4 --> otTables.CaretValue, format 2"""
    self = ot.CaretValue()
    self.Format = 2
    self.CaretValuePoint = point
    return self
Пример #3
0
def buildCaretValueForCoord(coord):
    """500 --> otTables.CaretValue, format 1"""
    self = ot.CaretValue()
    self.Format = 1
    self.Coordinate = coord
    return self