I want to create a create convert to InDesign text tagged text based on @Tosche’s script. So far I need to create a dictionary with the glyph and index, but I’m not sure whether this is actually the correct way to get the glyph’s index for the final output:
glyphIndexDict = {}
for i,g in enumerate(Font.glyphs):
if g.export:
glyphIndexDict[g.name] = i
Is it as simple as this or does it get reshuffled somehow in the end at export too?