CFbsFont Class Reference

class CFbsFont : public CFont

Font managed by the font and bitmap server. CFbsFont objects are used for screen and off-screen bitmap fonts. They are usually obtained by calls to the CBitmapDevice::GetNearestFontInPixels() and MGraphicsDeviceMap::GetNearestFontInTwips() functions. The class implements a number of functions inherited from CFont. CBitmapDevice::GetNearestFontInPixels()

MGraphicsDeviceMap::GetNearestFontInTwips()

Inherits from

Public Member Functions
IMPORT_C TCharacterMetricsCharacterMetrics(TInt, const TUint8 *&)
IMPORT_C TBoolGetFaceAttrib(TOpenFontFaceAttrib &)
IMPORT_C TBoolGetFontMetrics(TOpenFontMetrics &)
IMPORT_C TIntHandle()
IMPORT_C TBoolHasCharacter(TInt)
IMPORT_C TBoolIsOpenFont()
IMPORT_C TIntRawTextWidthInPixels(const TDesC &)
IMPORT_C TIntTextWidthInPixels(const TDesC &)
IMPORT_C voidTextWidthInPixels(const TDesC &, SCharWidth &)
IMPORT_C TIntTextWidthInPixels(const TDesC &, const TMeasureTextInput *)
IMPORT_C voidTextWidthInPixels(const TDesC &, const TMeasureTextInput *, SCharWidth &)
Protected Member Functions
CFbsFont()
CFbsFont(const CFbsFont &)
~CFbsFont()
IMPORT_C CBitmapFont *Address()
IMPORT_C TIntDuplicate(TInt)
IMPORT_C voidReset()
Private Member Functions
IMPORT_C TIntDoAscentInPixels()
IMPORT_C TIntDoBaselineOffsetInPixels()
IMPORT_C TIntDoCharWidthInPixels(TChar)
IMPORT_C TIntDoExtendedFunction(TUid, TAny *)
TInt DoFontDeleteShaping(TFontShapeDeleteFunctionParameters *)
TInt DoFontGetShaping(TFontShapeFunctionParameters *)
IMPORT_C TFontSpecDoFontSpecInTwips()
IMPORT_C CFont::TCharacterDataAvailabilityDoGetCharacterData(TUint, TOpenFontCharMetrics &, const TUint8 *&, TSize &)
IMPORT_C TIntDoHeightInPixels()
IMPORT_C TIntDoMaxCharWidthInPixels()
IMPORT_C TIntDoMaxNormalCharWidthInPixels()
IMPORT_C TIntDoTextCount(const TDesC &, TInt)
IMPORT_C TIntDoTextCount(const TDesC &, TInt, TInt &)
IMPORT_C TIntDoTextWidthInPixels(const TDesC &)
TInt DoTextWidthInPixels(const TDesC &, const TMeasureTextInput *)
TUid DoTypeUid()
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CFont::AscentInPixels()const
CFont::BaselineOffsetInPixels()const
CFont::CharWidthInPixels(TChar)const
CFont::CharactersJoin(TInt,TInt)
CFont::DescentInPixels()const
CFont::DoGetCharacterPosition(TPositionParam &)const
CFont::ExtendedFunction(TUid,TAny *)const
CFont::FontCapitalAscent()const
CFont::FontLineGap()const
CFont::FontMaxAscent()const
CFont::FontMaxDescent()const
CFont::FontMaxHeight()const
CFont::FontSpecInTwips()const
CFont::FontStandardDescent()const
CFont::GetCharacterData(TUint,TOpenFontCharMetrics &,const TUint8 *&,TSize &)const
CFont::GetCharacterPosition(TPositionParam &)const
CFont::GetCharacterPosition2(TPositionParam &,RShapeInfo &)const
CFont::HeightInPixels()const
CFont::MaxCharWidthInPixels()const
CFont::MaxNormalCharWidthInPixels()const
CFont::MeasureText(const TDesC &,const TMeasureTextInput *,TMeasureTextOutput *)const
CFont::TextCount(const TDesC &,TInt)const
CFont::TextCount(const TDesC &,TInt,TInt &)const
CFont::TypeUid()const
CFont::WidthZeroInPixels()const
CFont::~CFont()
Inherited Enumerations
CFont:TCharacterDataAvailability
CFont:TTextDirection
Protected Attributes
CBitmapFont *iAddressPointer
RFbsSession *iFbs
TInt iHandle
TInt iServerHandle

Constructor & Destructor Documentation

CFbsFont()

IMPORT_CCFbsFont()[protected]

CFbsFont(const CFbsFont &)

IMPORT_CCFbsFont(const CFbsFont &aFont)[protected]

Parameters

const CFbsFont & aFont

~CFbsFont()

IMPORT_C~CFbsFont()[protected]

Member Functions Documentation

Address()

IMPORT_C CBitmapFont *Address()const [protected]

CharacterMetrics(TInt, const TUint8 *&)

IMPORT_C TCharacterMetricsCharacterMetrics(TIntaCode,
const TUint8 *&aBytes
)const

Parameters

TInt aCode
const TUint8 *& aBytes

DoAscentInPixels()

IMPORT_C TIntDoAscentInPixels()const [private, virtual]

WARNING: Function for internal use ONLY. Compatibility is not guaranteed in future releases. Please see derived class for implementation.

DoBaselineOffsetInPixels()

IMPORT_C TIntDoBaselineOffsetInPixels()const [private, virtual]

WARNING: Function for internal use ONLY. Compatibility is not guaranteed in future releases. Please see derived class for implementation.

DoCharWidthInPixels(TChar)

IMPORT_C TIntDoCharWidthInPixels(TCharaChar)const [private, virtual]

WARNING: Function for internal use ONLY. Compatibility is not guaranteed in future releases. Please see derived class for implementation.

Parameters

TChar aChar

DoExtendedFunction(TUid, TAny *)

IMPORT_C TIntDoExtendedFunction(TUidaFunctionId,
TAny *aParam = NULL
)const [private, virtual]

Parameters

TUid aFunctionId
TAny * aParam = NULL

DoFontDeleteShaping(TFontShapeDeleteFunctionParameters *)

TInt DoFontDeleteShaping(TFontShapeDeleteFunctionParameters *aParam)const [private]

Parameters

TFontShapeDeleteFunctionParameters * aParam

DoFontGetShaping(TFontShapeFunctionParameters *)

TInt DoFontGetShaping(TFontShapeFunctionParameters *aParam)const [private]

Parameters

TFontShapeFunctionParameters * aParam

DoFontSpecInTwips()

IMPORT_C TFontSpecDoFontSpecInTwips()const [private, virtual]

WARNING: Function for internal use ONLY. Compatibility is not guaranteed in future releases. Please see derived class for implementation.

DoGetCharacterData(TUint, TOpenFontCharMetrics &, const TUint8 *&, TSize &)

IMPORT_C CFont::TCharacterDataAvailabilityDoGetCharacterData(TUintaCode,
TOpenFontCharMetrics &aMetrics,
const TUint8 *&aBitmap,
TSize &aBitmapSize
)const [private, virtual]

Parameters

TUint aCode
TOpenFontCharMetrics & aMetrics
const TUint8 *& aBitmap
TSize & aBitmapSize

DoHeightInPixels()

IMPORT_C TIntDoHeightInPixels()const [private, virtual]

WARNING: Function for internal use ONLY. Compatibility is not guaranteed in future releases. Please see derived class for implementation.

DoMaxCharWidthInPixels()

IMPORT_C TIntDoMaxCharWidthInPixels()const [private, virtual]

WARNING: Function for internal use ONLY. Compatibility is not guaranteed in future releases. Please see derived class for implementation.

DoMaxNormalCharWidthInPixels()

IMPORT_C TIntDoMaxNormalCharWidthInPixels()const [private, virtual]

WARNING: Function for internal use ONLY. Compatibility is not guaranteed in future releases. Please see derived class for implementation.

DoTextCount(const TDesC &, TInt)

IMPORT_C TIntDoTextCount(const TDesC &aText,
TIntaWidthInPixels
)const [private, virtual]

WARNING: Function for internal use ONLY. Compatibility is not guaranteed in future releases. Please see derived class for implementation.

Parameters

const TDesC & aText
TInt aWidthInPixels

DoTextCount(const TDesC &, TInt, TInt &)

IMPORT_C TIntDoTextCount(const TDesC &aText,
TIntaWidthInPixels,
TInt &aExcessWidthInPixels
)const [private, virtual]

WARNING: Function for internal use ONLY. Compatibility is not guaranteed in future releases. Please see derived class for implementation.

Parameters

const TDesC & aText
TInt aWidthInPixels
TInt & aExcessWidthInPixels

DoTextWidthInPixels(const TDesC &)

IMPORT_C TIntDoTextWidthInPixels(const TDesC &aText)const [private, virtual]

WARNING: Function for internal use ONLY. Compatibility is not guaranteed in future releases. Please see derived class for implementation.

Parameters

const TDesC & aText

DoTextWidthInPixels(const TDesC &, const TMeasureTextInput *)

TInt DoTextWidthInPixels(const TDesC &aText,
const TMeasureTextInput *aParam
)const [private]

Parameters

const TDesC & aText
const TMeasureTextInput * aParam

DoTypeUid()

TUid DoTypeUid()const [private, inline, virtual]

Gets the font's UID. All CFbsFont objects have the constant UID KCFbsFontUid. It is safe to cast from CFont* to CFbsFont* if CFont::TypeUid() returns KCFbsFontUid. The font's UID. This should be KCFbsFontUid.

CFont::TypeUid()

Duplicate(TInt)

IMPORT_C TIntDuplicate(TIntaHandle)[protected]

Parameters

TInt aHandle

GetFaceAttrib(TOpenFontFaceAttrib &)

IMPORT_C TBoolGetFaceAttrib(TOpenFontFaceAttrib &aAttrib)const

Parameters

TOpenFontFaceAttrib & aAttrib

GetFontMetrics(TOpenFontMetrics &)

IMPORT_C TBoolGetFontMetrics(TOpenFontMetrics &aMetrics)const

Parameters

TOpenFontMetrics & aMetrics

Handle()

IMPORT_C TIntHandle()const

HasCharacter(TInt)

IMPORT_C TBoolHasCharacter(TIntaCode)const

Parameters

TInt aCode

IsOpenFont()

IMPORT_C TBoolIsOpenFont()const

RawTextWidthInPixels(const TDesC &)

IMPORT_C TIntRawTextWidthInPixels(const TDesC &aText)const

Parameters

const TDesC & aText

Reset()

IMPORT_C voidReset()[protected]

TextWidthInPixels(const TDesC &)

IMPORT_C TIntTextWidthInPixels(const TDesC &aText)const

Gets the width in pixels of the specified descriptor when displayed in this font.

The width of the specified descriptor when displayed in this font, in pixels.

Parameters

const TDesC & aTextThe descriptor whose width should be determined.

TextWidthInPixels(const TDesC &, SCharWidth &)

IMPORT_C voidTextWidthInPixels(const TDesC &aText,
SCharWidth &aCharWidth
)const

Parameters

const TDesC & aText
SCharWidth & aCharWidth

TextWidthInPixels(const TDesC &, const TMeasureTextInput *)

IMPORT_C TIntTextWidthInPixels(const TDesC &aText,
const TMeasureTextInput *aParam
)const

Gets the width in pixels of the specified descriptor when displayed in this font.

The width of the specified descriptor when displayed in this font, in pixels.

Parameters

const TDesC & aTextThe descriptor whose width should be determined.
const TMeasureTextInput * aParamParameter block that controls how much of aText is measured

TextWidthInPixels(const TDesC &, const TMeasureTextInput *, SCharWidth &)

IMPORT_C voidTextWidthInPixels(const TDesC &aText,
const TMeasureTextInput *aParam,
SCharWidth &aCharWidth
)const

Parameters

const TDesC & aText
const TMeasureTextInput * aParam
SCharWidth & aCharWidth

Member Data Documentation

CBitmapFont * iAddressPointer

CBitmapFont *iAddressPointer[protected]

RFbsSession * iFbs

RFbsSession *iFbs[protected]

TInt iHandle

TInt iHandle[protected]

TInt iServerHandle

TInt iServerHandle[protected]