TShapeHeader Class Reference

class TShapeHeader

Internal class describing shaping information.

Member Data Documentation

TInt8 iBuffer

TInt8 iBuffer

The glyph, position and indices data.

The first iGlyphCount * 4 bytes contain the glyph codes as 2-byte values. The next iGlyphCount * 4 + 4 bytes contain the positions in which these glyphs are to be drawn, in pixels, taking the original pen position as origin, with the x axis going right and the y axis going down. The next iGlyphCount * 2 bytes contain the indices of the characters in the input string that correspond to the glyphs in the output.

The final entry in the position array is the total advance of the text.

Therefore this buffer is actually iGlyphCount * 10 + 4 bytes long.

TInt iCharacterCount

TInt iCharacterCount

Number of characters consumed from the input.

TInt iGlyphCount

TInt iGlyphCount

Number of glyphs output.

TInt iReserved0

TInt iReserved0

Reserved for future expansion.

TInt iReserved1

TInt iReserved1

Reserved for future expansion.