This commit is contained in:
Behdad Esfahbod 2016-01-14 12:28:32 +00:00
parent 5ea2acad56
commit d7ca50a624

View File

@ -37,7 +37,6 @@ def _getLigatureKey(components):
""" """
return (-len(components), components) return (-len(components), components)
def buildLigatureSubst(mapping): def buildLigatureSubst(mapping):
self = ot.LigatureSubst() self = ot.LigatureSubst()
# The following single line can replace the rest of this function # The following single line can replace the rest of this function
@ -54,6 +53,9 @@ def buildLigatureSubst(mapping):
return self return self
# GPOS
def buildAnchor(x, y, point=None, deviceX=None, deviceY=None): def buildAnchor(x, y, point=None, deviceX=None, deviceY=None):
self = ot.Anchor() self = ot.Anchor()
self.XCoordinate, self.YCoordinate = x, y self.XCoordinate, self.YCoordinate = x, y