#include <openfont.h>
| class MOpenFontShapingExtension |
| Public Member Functions | |
|---|---|
| pure virtual void | GetExtensionFontMetrics(TExtensionFontMetrics &) |
| pure virtual TInt | GlyphIndex(TInt) |
| pure virtual TBool | GlyphPointInFontUnits(TInt, TInt, TInt &, TInt &) |
| pure virtual TBool | GlyphPointInHintedPixels(TInt, TInt, TReal &, TReal &) |
| pure virtual void | RasterizeGlyphL(TInt, TOpenFontGlyphData *) |
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.
See also: COpenFont KUidOpenFontShapingExtension
| void | GetExtensionFontMetrics | ( | TExtensionFontMetrics & | aOut | ) | [pure virtual] |
Returns font metrics.
| Parameter | Description |
|---|---|
| aOut | Font metrics returned. |
| 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.
| Parameter | Description |
|---|---|
| aPointNumber | The number of the point. |
| aX | Returns the point's X co-ordinate in font units. |
| aY | Returns the point's Y co-ordinate in font units. |
Returns: True on success, false otherwise.
| 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.
| Parameter | Description |
|---|---|
| aPointNumber | The number of the point. |
| aX | Returns the point's X pixel value. |
| aY | Returns the point's Y pixel value. |
Returns: True on success, false otherwise.
| 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:
See also: COpenFont::RasterizeL()
| Parameter | Description |
|---|---|
| aCode | The glyph code of the character for which the bitmap is required. |
| aGlyphData | The function puts its output here. |