I’ve written myself down the rabbit hole.
Just realised that by looping through decomposed components and storing each one’s path data it’s in fact storing that plus whatever came previously as the layer now has newly added paths. What’s the best way to sequentially save that data other than read the component parent glyph?
The reason I ask is I want to manipulate each glyph within the ligature separately.
allletters = list()
while len( thisLayer.components ) != 0:
thisLayer.components[0].decompose()
thisletter = list()
pathlist = list()
for thisPath in thisLayer.paths:
#pathlist.append(thisPath)
print thisPath
thisletter.append(pathlist)
allletters.append(thisletter)