| 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()
| Public Member Functions | |
|---|---|
| IMPORT_C TCharacterMetrics | CharacterMetrics(TInt, const TUint8 *&) |
| IMPORT_C TBool | GetFaceAttrib(TOpenFontFaceAttrib &) |
| IMPORT_C TBool | GetFontMetrics(TOpenFontMetrics &) |
| IMPORT_C TInt | Handle() |
| IMPORT_C TBool | HasCharacter(TInt) |
| IMPORT_C TBool | IsOpenFont() |
| IMPORT_C TInt | RawTextWidthInPixels(const TDesC &) |
| IMPORT_C TInt | TextWidthInPixels(const TDesC &) |
| IMPORT_C void | TextWidthInPixels(const TDesC &, SCharWidth &) |
| IMPORT_C TInt | TextWidthInPixels(const TDesC &, const TMeasureTextInput *) |
| IMPORT_C void | TextWidthInPixels(const TDesC &, const TMeasureTextInput *, SCharWidth &) |
| Protected Member Functions | |
|---|---|
| CFbsFont() | |
| CFbsFont(const CFbsFont &) | |
| ~CFbsFont() | |
| IMPORT_C CBitmapFont * | Address() |
| IMPORT_C TInt | Duplicate(TInt) |
| IMPORT_C void | Reset() |
| Private Member Functions | |
|---|---|
| IMPORT_C TInt | DoAscentInPixels() |
| IMPORT_C TInt | DoBaselineOffsetInPixels() |
| IMPORT_C TInt | DoCharWidthInPixels(TChar) |
| IMPORT_C TInt | DoExtendedFunction(TUid, TAny *) |
| TInt | DoFontDeleteShaping(TFontShapeDeleteFunctionParameters *) |
| TInt | DoFontGetShaping(TFontShapeFunctionParameters *) |
| IMPORT_C TFontSpec | DoFontSpecInTwips() |
| IMPORT_C CFont::TCharacterDataAvailability | DoGetCharacterData(TUint, TOpenFontCharMetrics &, const TUint8 *&, TSize &) |
| 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 *) |
| TUid | DoTypeUid() |
| Inherited Enumerations | |
|---|---|
| CFont:TCharacterDataAvailability | |
| CFont:TTextDirection | |
| Protected Attributes | |
|---|---|
| CBitmapFont * | iAddressPointer |
| RFbsSession * | iFbs |
| TInt | iHandle |
| TInt | iServerHandle |
| IMPORT_C | CFbsFont | ( | const CFbsFont & | aFont | ) | [protected] |
| const CFbsFont & aFont |
| IMPORT_C TCharacterMetrics | CharacterMetrics | ( | TInt | aCode, |
| const TUint8 *& | aBytes | |||
| ) | const | |||
| 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.
| 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.
| 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.
| TChar aChar |
| IMPORT_C TInt | DoExtendedFunction | ( | TUid | aFunctionId, |
| TAny * | aParam = NULL | |||
| ) | const [private, virtual] | |||
| TInt | DoFontDeleteShaping | ( | TFontShapeDeleteFunctionParameters * | aParam | ) | const [private] |
| TFontShapeDeleteFunctionParameters * aParam |
| TInt | DoFontGetShaping | ( | TFontShapeFunctionParameters * | aParam | ) | const [private] |
| TFontShapeFunctionParameters * aParam |
| 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.
| IMPORT_C CFont::TCharacterDataAvailability | DoGetCharacterData | ( | TUint | aCode, |
| TOpenFontCharMetrics & | aMetrics, | |||
| const TUint8 *& | aBitmap, | |||
| TSize & | aBitmapSize | |||
| ) | const [private, virtual] | |||
| TUint aCode | |
| TOpenFontCharMetrics & aMetrics | |
| const TUint8 *& aBitmap | |
| TSize & aBitmapSize |
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| const TDesC & aText |
| TInt | DoTextWidthInPixels | ( | const TDesC & | aText, |
| const TMeasureTextInput * | aParam | |||
| ) | const [private] | |||
| const TDesC & aText | |
| const TMeasureTextInput * aParam |
| 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.
| IMPORT_C TBool | GetFaceAttrib | ( | TOpenFontFaceAttrib & | aAttrib | ) | const |
| TOpenFontFaceAttrib & aAttrib |
| IMPORT_C TBool | GetFontMetrics | ( | TOpenFontMetrics & | aMetrics | ) | const |
| TOpenFontMetrics & aMetrics |
| IMPORT_C TInt | RawTextWidthInPixels | ( | const TDesC & | aText | ) | const |
| const TDesC & aText |
| IMPORT_C TInt | TextWidthInPixels | ( | 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.
| const TDesC & aText | The descriptor whose width should be determined. |
| IMPORT_C void | TextWidthInPixels | ( | const TDesC & | aText, |
| SCharWidth & | aCharWidth | |||
| ) | const | |||
| const TDesC & aText | |
| SCharWidth & aCharWidth |
| IMPORT_C TInt | TextWidthInPixels | ( | 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.
| const TDesC & aText | The descriptor whose width should be determined. |
| const TMeasureTextInput * aParam | Parameter block that controls how much of aText is measured |
| IMPORT_C void | TextWidthInPixels | ( | const TDesC & | aText, |
| const TMeasureTextInput * | aParam, | |||
| SCharWidth & | aCharWidth | |||
| ) | const | |||
| const TDesC & aText | |
| const TMeasureTextInput * aParam | |
| SCharWidth & aCharWidth |