Get the glyphs in textStorage() after substitutions

In a text window, I want to get the glyphs that have been substituted but not the inputted text? As in the glyphs after OT feature substitution has been applied.

Font = Glyphs.font
Doc = Glyphs.currentDocument
TextStorage = Doc.windowController().activeEditViewController().graphicView().textStorage()    
print TextStorage.text()

Returns the inputted text

Doc = Glyphs.currentDocument
print Doc.windowController().activeEditViewController().graphicView().layoutManager().cachedGlyphs()
1 Like