[glyf] Remove __getitem__

This used to iterate over components. Pretty weird choice.
This commit is contained in:
Behdad Esfahbod 2023-01-17 08:34:32 -07:00
parent 253b4f9afc
commit 796cfe750a

View File

@ -1090,11 +1090,6 @@ class Glyph(object):
else:
return self.numberOfContours == -1
def __getitem__(self, componentIndex):
if not self.isComposite():
raise ttLib.TTLibError("can't use glyph as sequence")
return self.components[componentIndex]
def getCoordinates(self, glyfTable):
"""Return the coordinates, end points and flags