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.
Public Member Functions |
---|
IMPORT_C TInt | BitmapEncoding() |
IMPORT_C TCharacterMetrics | CharacterMetrics(TInt, const TUint8 *&) |
IMPORT_C TBool | CharacterNeedsToBeRasterized(TInt, TInt) |
IMPORT_C void | DeleteShape(TInt, TShapeHeader *) |
IMPORT_C TBool | GetCharacterData(TInt, TInt, TOpenFontCharMetrics &, const TUint8 *&) |
IMPORT_C TBool | GetFaceAttrib(TOpenFontFaceAttrib &) |
IMPORT_C void | GetFontMetrics(TOpenFontMetrics &) |
TGlyphBitmapType
| GlyphBitmapType() |
IMPORT_C TBool | HasCharacterL(TInt) |
TBool
| IsOpenFont() |
COpenFont * | OpenFont() |
IMPORT_C TBool | Rasterize(TInt, TInt, TOpenFontGlyphData *) |
IMPORT_C TShapeHeader * | ShapeTextL(const TDesC16 &, TInt, const TShapeMessageParameters &) |
TUid
| Uid() |
IMPORT_C TUint32 | UniqueFontId() |
IMPORT_C void | operator delete(TAny *) |
Private Member Functions |
---|
| CBitmapFont(RHeap *, const TFontSpec &, const TAlgStyle &, CFontBitmap *) |
| CBitmapFont(RHeap *, const TFontSpec &, const TAlgStyle &, COpenFont *) |
| ~CBitmapFont() |
void | ConstructL() |
IMPORT_C TInt | DoAscentInPixels() |
IMPORT_C TInt | DoBaselineOffsetInPixels() |
IMPORT_C TInt | DoCharWidthInPixels(TChar) |
IMPORT_C TInt | DoExtendedFunction(TUid, TAny *) |
IMPORT_C TFontSpec | DoFontSpecInTwips() |
IMPORT_C TInt | DoHeightInPixels() |
IMPORT_C TInt | DoMaxCharWidthInPixels() |
IMPORT_C TInt | DoMaxNormalCharWidthInPixels() |
IMPORT_C TInt | DoTextCount(const TDesC &, TInt) |
IMPORT_C TInt | DoTextCount(const TDesC &, TInt, TInt &) |
IMPORT_C TInt | DoTextWidthInPixels(const TDesC &) |
TInt
| DoTextWidthInPixels(const TDesC &, const TMeasureTextInput *) |
IMPORT_C TUid | DoTypeUid() |
CFontBitmap * | FontBitmap() |
TInt
| Height(TInt) |
void | InstallOpenFontShaper(COpenFont *, CShaper::TInput &) |
CBitmapFont * | NewL(RHeap *, const TFontSpec &, const TAlgStyle &, CFontBitmap *) |
CBitmapFont * | NewL(RHeap *, const TFontSpec &, const TAlgStyle &, COpenFont *) |
void | SetUniqueFontId(TUint32) |
TInt
| Width(TInt) |
void | operator 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() |
Constructor & Destructor Documentation
CBitmapFont(RHeap *, const TFontSpec &, const TAlgStyle &, CFontBitmap *)
CBitmapFont | ( | RHeap * | aHeap, |
| const TFontSpec & | aFontSpecInTwips, |
| const TAlgStyle & | aAlgStyle, |
| CFontBitmap * | aFontBitmap |
| ) | [private] |
CBitmapFont(RHeap *, const TFontSpec &, const TAlgStyle &, COpenFont *)
Member Functions Documentation
BitmapEncoding()
IMPORT_C TInt | BitmapEncoding | ( | ) | const |
CharacterMetrics(TInt, const TUint8 *&)
CharacterNeedsToBeRasterized(TInt, TInt)
IMPORT_C TBool | CharacterNeedsToBeRasterized | ( | TInt | aSessionHandle, |
| TInt | aCode |
| ) | const |
ConstructL()
void | ConstructL | ( | ) | [private] |
DeleteShape(TInt, TShapeHeader *)
IMPORT_C void | DeleteShape | ( | TInt | aSessionHandle, |
| TShapeHeader * | aHeader |
| ) | |
Parameters
TInt aSessionHandle | |
TShapeHeader * aHeader | |
DoAscentInPixels()
IMPORT_C TInt | DoAscentInPixels | ( | ) | 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 TInt | DoBaselineOffsetInPixels | ( | ) | 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 TInt | DoCharWidthInPixels | ( | TChar | aChar | ) | const [private, virtual] |
WARNING: Function for internal use ONLY. Compatibility is not guaranteed in future releases. Please see derived class for implementation.
DoExtendedFunction(TUid, TAny *)
IMPORT_C TInt | DoExtendedFunction | ( | TUid | aFunctionId, |
| TAny * | aParam = NULL |
| ) | const [private, virtual] |
DoFontSpecInTwips()
IMPORT_C TFontSpec | DoFontSpecInTwips | ( | ) | 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 TInt | DoHeightInPixels | ( | ) | 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 TInt | DoMaxCharWidthInPixels | ( | ) | 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 TInt | DoMaxNormalCharWidthInPixels | ( | ) | 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 TInt | DoTextCount | ( | const TDesC & | aText, |
| TInt | aWidthInPixels |
| ) | 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, TInt &)
IMPORT_C TInt | DoTextCount | ( | const TDesC & | aText, |
| TInt | aWidthInPixels, |
| 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 TInt | DoTextWidthInPixels | ( | 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.
DoTextWidthInPixels(const TDesC &, const TMeasureTextInput *)
DoTypeUid()
IMPORT_C TUid | DoTypeUid | ( | ) | 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 *&)
GetFaceAttrib(TOpenFontFaceAttrib &)
GetFontMetrics(TOpenFontMetrics &)
GlyphBitmapType()
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
InstallOpenFontShaper(COpenFont *, CShaper::TInput &)
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 *)
NewL(RHeap *, const TFontSpec &, const TAlgStyle &, COpenFont *)
OpenFont()
Returns a pointer to the open font being used by the bitmap font object.
IsOpenFont()
Rasterize(TInt, TInt, TOpenFontGlyphData *)
SetUniqueFontId(TUint32)
void | SetUniqueFontId | ( | TUint32 | aUniqueFontId | ) | [private] |
ShapeTextL(const TDesC16 &, TInt, const TShapeMessageParameters &)
IMPORT_C TShapeHeader * | ShapeTextL | ( | const TDesC16 & | aText, |
| TInt | aSessionHandle, |
| const TShapeMessageParameters & | aParams |
| ) | |
Parameters
const TDesC16 & aText | |
TInt aSessionHandle | |
const TShapeMessageParameters & aParams | |
operator delete(TAny *)
IMPORT_C void | operator delete | ( | TAny * | | ) | |
operator delete(TAny *, TAny *)
void | operator delete | ( | TAny * | , |
| TAny * | |
| ) | [private, inline] |
Member Data Documentation
TAlgStyle
iAlgStyle
The algorithmic font style.
TInt
iFontBitmapOffset
TInt
| iFontBitmapOffset | [private] |
TFontSpec
iFontSpecInTwips
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.