MOpenFontShapingExtension Class Reference

class MOpenFontShapingExtension

Open Font System Extension Interface abstract base class.

COpenFont derivers should also derive from this interface to enable complex font "shaping".

This interface should be returned by the overridden COpenFont::ExtendedInterface function when KUidOpenFontShapingExtension is supplied as the UID.

COpenFont KUidOpenFontShapingExtension

Member Functions Documentation

GetExtensionFontMetrics(TExtensionFontMetrics &)

void GetExtensionFontMetrics ( TExtensionFontMetrics & aOut ) [pure virtual]

Returns font metrics.

Parameters

TExtensionFontMetrics & aOut Font metrics returned.

GlyphIndex(TInt)

TInt GlyphIndex ( TInt aUnicodeCharacter ) const [pure virtual]

Maps a character to a glyph index.

Parameters

TInt aUnicodeCharacter Unicode character code to be mapped.

GlyphPointInFontUnits(TInt, TInt, TInt &, TInt &)

TBool GlyphPointInFontUnits ( TInt aGlyphIndex,
TInt aPointNumber,
TInt & aX,
TInt & aY
) const [pure virtual]

Returns the coordinates of a particular (unhinted) point in the outline of the given glyph in font units.

Parameters

TInt aGlyphIndex
TInt aPointNumber The number of the point.
TInt & aX Returns the point's X co-ordinate in font units.
TInt & aY Returns the point's Y co-ordinate in font units.

GlyphPointInHintedPixels(TInt, TInt, TReal &, TReal &)

TBool GlyphPointInHintedPixels ( TInt aGlyphIndex,
TInt aPointNumber,
TReal & aX,
TReal & aY
) const [pure virtual]

Returns the hinted pixel coordinates of a particular point in the outline of the given glyph.

Parameters

TInt aGlyphIndex
TInt aPointNumber The number of the point.
TReal & aX Returns the point's X pixel value.
TReal & aY Returns the point's Y pixel value.

RasterizeGlyphL(TInt, TOpenFontGlyphData *)

void RasterizeGlyphL ( TInt aCode,
TOpenFontGlyphData * aGlyphData
) [pure virtual]

Creates a bitmap for the specified Glyph code.

Implementations of this function should put the bitmap in aGlyphData->iBitmapBuffer, and the character metrics are placed in aGlyphData->iMetricsBuffer. The other parts of aGlyphData should be left alone.

This function provides the same functionality as the COpenFont::RasterizeL() except that the glyph code is supplied rather than the unicode.

For more information: COpenFont::RasterizeL()

Parameters

TInt aCode The glyph code of the character for which the bitmap is required.
TOpenFontGlyphData * aGlyphData The function puts its output here.