Getting glyph positions
Is there a way to get back all the glyph sizes and positions used to compose a line or block of text?
Assuming I'm trusting FTE to compose my text for me, I'd like to get the details of the composed text so I can reuse t
his information to generate PDF, for example.
I can almost do it with TextLine.textSnapshot.getTextRunInfo(), but the run info returned surprisingly does not include which glyph is positioned! It includes the index of the originally input character, but often characters or sets of characters get replaced in composition. Ligatures (e.g., "fi", "ffi", etc.), for example, use a single glyph to render 2 or more characters. Also, some complex scripts use different glyphs for a character depending on where the character is located within a word.
The run info does give me a transform matrix for each character, which is great. Any way to get glyph info to go with that? Or am I not understanding what this info contains?
Thank you!
-pd
