TTextChunk.arrayOfGlyphs

property arrayOfGlyphs: TArrayOfPathsD; //read only

This property returns the chunk's glyph outlines, noting that each glyph is a TPathsD structure, since each glyph may require multiple TPathD contours.

It's also important to note that while the number of glyphs in this array very likely equals the number of characters in the chunk's text, that is not always the case. Occasionally text chunks contain surrogate paired characters, where two characters define a single glyph. (Emoji characters are typically surrogate paired characters.) Likewise the length of the glyphOffsets property equals the number of glyphs, and that may not equal the number of chunk's text characters.

See Also

glyphOffsets, TArrayOfPathsD