Change name of MaxpValues to CompositeMaxpValues
This commit is contained in:
parent
d1cf59d2c9
commit
6d5ebcc4a9
@ -298,7 +298,7 @@ SCALED_COMPONENT_OFFSET = 0x0800 # composite designed to have the component of
|
|||||||
UNSCALED_COMPONENT_OFFSET = 0x1000 # composite designed not to have the component offset scaled (designed for MS)
|
UNSCALED_COMPONENT_OFFSET = 0x1000 # composite designed not to have the component offset scaled (designed for MS)
|
||||||
|
|
||||||
|
|
||||||
MaxpValues = namedtuple('MaxpValues', ['nPoints', 'nContours', 'maxComponentDepth'])
|
CompositeMaxpValues = namedtuple('CompositeMaxpValues', ['nPoints', 'nContours', 'maxComponentDepth'])
|
||||||
|
|
||||||
|
|
||||||
class Glyph(object):
|
class Glyph(object):
|
||||||
@ -440,7 +440,7 @@ class Glyph(object):
|
|||||||
glyfTable, maxComponentDepth + 1)
|
glyfTable, maxComponentDepth + 1)
|
||||||
nPoints = nPoints + nP
|
nPoints = nPoints + nP
|
||||||
nContours = nContours + nC
|
nContours = nContours + nC
|
||||||
return MaxpValues(nPoints, nContours, maxComponentDepth)
|
return CompositeMaxpValues(nPoints, nContours, maxComponentDepth)
|
||||||
|
|
||||||
def getMaxpValues(self):
|
def getMaxpValues(self):
|
||||||
assert self.numberOfContours > 0
|
assert self.numberOfContours > 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user