CBitmapFont Class Reference

class CBitmapFont : public CFont

Bitmap font class. An object of this class may either access and use a bitmap font (a CFontBitmap) or an open font (a COpenFont). Stored in a CFontStore.

Inherits from

Public Member Functions
IMPORT_C TIntBitmapEncoding()
IMPORT_C TCharacterMetricsCharacterMetrics(TInt, const TUint8 *&)
IMPORT_C TBoolCharacterNeedsToBeRasterized(TInt, TInt)
IMPORT_C voidDeleteShape(TInt, TShapeHeader *)
IMPORT_C TBoolGetCharacterData(TInt, TInt, TOpenFontCharMetrics &, const TUint8 *&)
IMPORT_C TBoolGetFaceAttrib(TOpenFontFaceAttrib &)
IMPORT_C voidGetFontMetrics(TOpenFontMetrics &)
TGlyphBitmapType GlyphBitmapType()
IMPORT_C TBoolHasCharacterL(TInt)
TBool IsOpenFont()
COpenFont *OpenFont()
IMPORT_C TBoolRasterize(TInt, TInt, TOpenFontGlyphData *)
IMPORT_C TShapeHeader *ShapeTextL(const TDesC16 &, TInt, const TShapeMessageParameters &)
TUid Uid()
IMPORT_C TUint32UniqueFontId()
IMPORT_C voidoperator delete(TAny *)
Private Member Functions
CBitmapFont(RHeap *, const TFontSpec &, const TAlgStyle &, CFontBitmap *)
CBitmapFont(RHeap *, const TFontSpec &, const TAlgStyle &, COpenFont *)
~CBitmapFont()
voidConstructL()
IMPORT_C TIntDoAscentInPixels()
IMPORT_C TIntDoBaselineOffsetInPixels()
IMPORT_C TIntDoCharWidthInPixels(TChar)
IMPORT_C TIntDoExtendedFunction(TUid, TAny *)
IMPORT_C TFontSpecDoFontSpecInTwips()
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 *)
IMPORT_C TUidDoTypeUid()
CFontBitmap *FontBitmap()
TInt Height(TInt)
voidInstallOpenFontShaper(COpenFont *, CShaper::TInput &)
CBitmapFont *NewL(RHeap *, const TFontSpec &, const TAlgStyle &, CFontBitmap *)
CBitmapFont *NewL(RHeap *, const TFontSpec &, const TAlgStyle &, COpenFont *)
voidSetUniqueFontId(TUint32)
TInt Width(TInt)
voidoperator delete(TAny *, TAny *)
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::DoGetCharacterData(TUint,TOpenFontCharMetrics &,const TUint8 *&,TSize &)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::TextWidthInPixels(const TDesC &)const
CFont::TextWidthInPixels(const TDesC &,const TMeasureTextInput *)const
CFont::TypeUid()const
CFont::WidthZeroInPixels()const
CFont::~CFont()
Inherited Enumerations
CFont:TCharacterDataAvailability
CFont:TTextDirection
Public Attributes
TAlgStyle iAlgStyle
Private Attributes
TInt iFontBitmapOffset
TFontSpec iFontSpecInTwips
RHeap *iHeap
COpenFont *iOpenFont
TUint32 iReserved
TUint32 iUniqueFontId

Constructor & Destructor Documentation

CBitmapFont(RHeap *, const TFontSpec &, const TAlgStyle &, CFontBitmap *)

CBitmapFont(RHeap *aHeap,
const TFontSpec &aFontSpecInTwips,
const TAlgStyle &aAlgStyle,
CFontBitmap *aFontBitmap
)[private]

Parameters

RHeap * aHeap
const TFontSpec & aFontSpecInTwips
const TAlgStyle & aAlgStyle
CFontBitmap * aFontBitmap

CBitmapFont(RHeap *, const TFontSpec &, const TAlgStyle &, COpenFont *)

CBitmapFont(RHeap *aHeap,
const TFontSpec &aFontSpecInTwips,
const TAlgStyle &aAlgStyle,
COpenFont *aOpenFont
)[private]

Parameters

RHeap * aHeap
const TFontSpec & aFontSpecInTwips
const TAlgStyle & aAlgStyle
COpenFont * aOpenFont

~CBitmapFont()

~CBitmapFont()[private]

Member Functions Documentation

BitmapEncoding()

IMPORT_C TIntBitmapEncoding()const

CharacterMetrics(TInt, const TUint8 *&)

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

Parameters

TInt aCode
const TUint8 *& aBytes

CharacterNeedsToBeRasterized(TInt, TInt)

IMPORT_C TBoolCharacterNeedsToBeRasterized(TIntaSessionHandle,
TIntaCode
)const

Parameters

TInt aSessionHandle
TInt aCode

ConstructL()

voidConstructL()[private]

DeleteShape(TInt, TShapeHeader *)

IMPORT_C voidDeleteShape(TIntaSessionHandle,
TShapeHeader *aHeader
)

Parameters

TInt aSessionHandle
TShapeHeader * aHeader

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

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.

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()

IMPORT_C TUidDoTypeUid()const [private, virtual]

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

FontBitmap()

CFontBitmap *FontBitmap()const [private]

GetCharacterData(TInt, TInt, TOpenFontCharMetrics &, const TUint8 *&)

IMPORT_C TBoolGetCharacterData(TIntaSessionHandle,
TIntaCode,
TOpenFontCharMetrics &aMetrics,
const TUint8 *&aBitmap
)const

Parameters

TInt aSessionHandle
TInt aCode
TOpenFontCharMetrics & aMetrics
const TUint8 *& aBitmap

GetFaceAttrib(TOpenFontFaceAttrib &)

IMPORT_C TBoolGetFaceAttrib(TOpenFontFaceAttrib &aAttrib)const

Parameters

TOpenFontFaceAttrib & aAttrib

GetFontMetrics(TOpenFontMetrics &)

IMPORT_C voidGetFontMetrics(TOpenFontMetrics &aMetrics)const

Parameters

TOpenFontMetrics & aMetrics

GlyphBitmapType()

TGlyphBitmapType GlyphBitmapType()const [inline]

Gets the anti-aliasing setting for the font, see TGlyphBitmapType for the range of values.

This is only applicable to open fonts (COpenFonts) not bitmap fonts (CBitmapFonts).

Note that this setting is stored in the device-independent font specification which is set when the bitmap font object is constructed.

IsOpenFont() TGlyphBitmapType COpenFont CBitmapFont

HasCharacterL(TInt)

IMPORT_C TBoolHasCharacterL(TIntaCode)const

Parameters

TInt aCode

Height(TInt)

TInt Height(TIntaNum)const [private]

Parameters

TInt aNum

InstallOpenFontShaper(COpenFont *, CShaper::TInput &)

voidInstallOpenFontShaper(COpenFont *aOpenFont,
CShaper::TInput &aShaperInput
)[private]

Parameters

COpenFont * aOpenFont
CShaper::TInput & aShaperInput

IsOpenFont()

TBool IsOpenFont()const [inline]

Returns whether the bitmap font object is an open font (a COpenFont) rather than a bitmap font (a CFontBitmap).

OpenFont()

NewL(RHeap *, const TFontSpec &, const TAlgStyle &, CFontBitmap *)

CBitmapFont *NewL(RHeap *aHeap,
const TFontSpec &aFontSpecInTwips,
const TAlgStyle &aAlgStyle,
CFontBitmap *aFontBitmap
)[private, static]

Parameters

RHeap * aHeap
const TFontSpec & aFontSpecInTwips
const TAlgStyle & aAlgStyle
CFontBitmap * aFontBitmap

NewL(RHeap *, const TFontSpec &, const TAlgStyle &, COpenFont *)

CBitmapFont *NewL(RHeap *aHeap,
const TFontSpec &aFontSpecInTwips,
const TAlgStyle &aAlgStyle,
COpenFont *aOpenFont
)[private, static]

Parameters

RHeap * aHeap
const TFontSpec & aFontSpecInTwips
const TAlgStyle & aAlgStyle
COpenFont * aOpenFont

OpenFont()

COpenFont *OpenFont()const [inline]

Returns a pointer to the open font being used by the bitmap font object.

IsOpenFont()

Rasterize(TInt, TInt, TOpenFontGlyphData *)

IMPORT_C TBoolRasterize(TIntaSessionHandle,
TIntaCode,
TOpenFontGlyphData *aGlyphData
)const

Parameters

TInt aSessionHandle
TInt aCode
TOpenFontGlyphData * aGlyphData

SetUniqueFontId(TUint32)

voidSetUniqueFontId(TUint32aUniqueFontId)[private]

Parameters

TUint32 aUniqueFontId

ShapeTextL(const TDesC16 &, TInt, const TShapeMessageParameters &)

IMPORT_C TShapeHeader *ShapeTextL(const TDesC16 &aText,
TIntaSessionHandle,
const TShapeMessageParameters &aParams
)

Parameters

const TDesC16 & aText
TInt aSessionHandle
const TShapeMessageParameters & aParams

Uid()

TUid Uid()const

UniqueFontId()

IMPORT_C TUint32UniqueFontId()

Width(TInt)

TInt Width(TIntaNum)const [private]

Parameters

TInt aNum

operator delete(TAny *)

IMPORT_C voidoperator delete(TAny *)

Parameters

TAny *

operator delete(TAny *, TAny *)

voidoperator delete(TAny *,
TAny *
)[private, inline]

Parameters

TAny *
TAny *

Member Data Documentation

TAlgStyle iAlgStyle

TAlgStyle iAlgStyle

The algorithmic font style.

TInt iFontBitmapOffset

TInt iFontBitmapOffset[private]

TFontSpec iFontSpecInTwips

TFontSpec iFontSpecInTwips[private]

RHeap * iHeap

RHeap *iHeap[private]

COpenFont * iOpenFont

COpenFont *iOpenFont[private]

TUint32 iReserved

TUint32 iReserved[private]

TUint32 iUniqueFontId

TUint32 iUniqueFontId[private]