RShapeInfo Class Reference

class RShapeInfo

Holds shaping information for text that requires it (for example Indic text).

Nested Classes and Structures

Constructor & Destructor Documentation

RShapeInfo()

IMPORT_C RShapeInfo ( )

Construct an RShapeInfo .

Member Functions Documentation

Advance()

TPoint16 Advance ( ) const

Returns the pen advance these glyphs require.

Close()

IMPORT_C void Close ( )

Frees the memory associated with this shaping information.

EndOfShapedText()

TInt EndOfShapedText ( )

GetContext()

TAny * GetContext ( )

GlyphCount()

TInt GlyphCount ( ) const

Returns the number of glyphs in the shaped output.

GlyphPositions()

const TPoint16 * GlyphPositions ( ) const

Returns the array of positions for the glyphs returned by Glyphs, and the total advance for the text.

Glyphs()

const TInt32 * Glyphs ( ) const

Returns the array of glyphs. These must be ORed with 0x80000000 to make glyph numbers that functions like CFbsFont::Rasterize can accept to avoid confusing glyph numbers with Unicode character numbers. GlyphCount

Indices()

const TInt16 * Indices ( ) const

Returns the array of indices.

IsOpen()

IMPORT_C TBool IsOpen ( )

Checks if this shaping information is still occupying memory.

Open(const CFont *, const TDesC16 &, TInt, TInt, TInt, TInt)

TInt Open ( const CFont * aFont,
const TDesC16 & aText,
TInt aStartOfTextToShape,
TInt aEndOfTextToShape,
TInt aScriptCode,
TInt aLanguageCode
)

Perform shaping on the text in aText between aStartOfTextToShape and aEndOfTextToShape, based on the script conventions implied by aScriptCode.

Parameters

const CFont * aFont The font to use for the shaping.
const TDesC16 & aText The text, including context.
TInt aStartOfTextToShape The start position within aText of the text to be shaped.
TInt aEndOfTextToShape The end position within aText of the text to be shaped.
TInt aScriptCode The script code for the script being shaped.
TInt aLanguageCode The language code for the language being shaped.

SetContext(TAny *)

void SetContext ( TAny * aContextualProcessFunc )

Parameters

TAny * aContextualProcessFunc

Member Data Documentation

TAny * iContextualProcessFunc

TAny * iContextualProcessFunc [private]

TInt iEndOfShapedText

TInt iEndOfShapedText [private]

const CFont * iFont

const CFont * iFont [private]

const TShapeHeader * iHeader

const TShapeHeader * iHeader [private]