#include <openfont.h>
| class CShaper : public CBase | 
| Public Member Functions | |
|---|---|
| CShaper() | |
| virtual | ~CShaper() | 
| pure virtual TInt | ConstructL(CBitmapFont *, TInt, TInt, RHeap *) | 
| virtual IMPORT_C void * | ExtendedInterface(TUid) | 
| pure virtual TInt | ShapeText(TShapeHeader *&, const TInput &, RHeap *) | 
Shaper abstract class. All shaper implementations derive from this
| TInt | ConstructL | ( | CBitmapFont * | aBitmapFont, | 
| TInt | aScript, | |||
| TInt | aLanguage, | |||
| RHeap * | iHeap | |||
| ) | [pure virtual] | |||
construct a shaper object
| Parameter | Description | 
|---|---|
| aBitmapFont | The font to be shaped. | 
Returns: KErrNone if this font can be shaper or system wide error code
| IMPORT_C void * | ExtendedInterface | ( | TUid | aInterfaceId | ) | [virtual] | 
For future expansion. Any overriders must base-call if aInterface is unrecognized.
WARNING: Function for internal use ONLY. Compatibility is not guaranteed in future releases.
| Parameter | Description | 
|---|---|
| aInterfaceId | The ID of the interface to return. | 
Returns: A pointer to the extension interface.
| TInt | ShapeText | ( | TShapeHeader *& | aOutput, | 
| const TInput & | aInput, | |||
| RHeap * | aHeapForOutput | |||
| ) | [pure virtual] | |||
If possible, shape the text described by aInput, placing the output on aHeapForOutput.
See also: TShapeHeader
| Parameter | Description | 
|---|---|
| aOutput | The output, as a newly allocate object on aHeapForOutput. | 
| aInput | The input text and other parameters. | 
| aHeapForOutput | On success, aOutput should be allocated from this and nothing else. On failure, nothing should be allocated from it. | 
Returns: Error value from one of the system-wide error codes on failure, KErrNone on success.