CShaper Class Reference

#include <openfont.h>

Link against: fntstr.lib

class CShaper : public CBase

Inherits from

  • CShaper

    Nested Classes and Structures

    Detailed Description

    Shaper abstract class. All shaper implementations derive from this

    Constructor & Destructor Documentation

    CShaper ( )

    IMPORT_CCShaper()

    Constructor

    ~CShaper ( )

    IMPORT_C~CShaper()[virtual]

    Destructor

    Member Function Documentation

    ConstructL ( CBitmapFont *, TInt, TInt, RHeap * )

    TInt ConstructL(CBitmapFont *aBitmapFont,
    TIntaScript,
    TIntaLanguage,
    RHeap *iHeap
    )[pure virtual]

    construct a shaper object

    ParameterDescription
    aBitmapFontThe font to be shaped.

    Returns: KErrNone if this font can be shaper or system wide error code

    ExtendedInterface ( TUid )

    IMPORT_C void *ExtendedInterface(TUidaInterfaceId)[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.

    ParameterDescription
    aInterfaceIdThe ID of the interface to return.

    Returns: A pointer to the extension interface.

    ShapeText ( TShapeHeader *&, const TInput &, RHeap * )

    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

    ParameterDescription
    aOutputThe output, as a newly allocate object on aHeapForOutput.
    aInputThe input text and other parameters.
    aHeapForOutputOn 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.