API published in: S60 3rd Ed
Link against: uiklaf.lib avkon.lib fontutils.lib
Required Capabilities
None
#include <aknlayoutfont.h>
Concrete classes derived from this implement constructors and Update methods that supply the specification required for the initially, and newly bound font, respectively. Derived classes must also implement the CreateFont framework method in order to implement the font binding itself.
Public Member Functions |
|
virtual | ~CAknLayoutFont () |
C++ Destructor. |
|
IMPORT_C void | Update () |
Update this object's binding to a CFbsFont, using the member data of the derived class. |
|
IMPORT_C TInt | MaxAscent () const |
Return the maximum extent of any pixel in the font upwards from the baseline Measured up, so therefore it is a positive value.
|
|
IMPORT_C TInt | MaxDescent () const |
Return the maximum extent of any pixel in the font down the baseline Measured down, so therefore it is usually a positive
value. |
|
IMPORT_C TInt | TextPaneTopToBaseline () const |
IMPORT_C TInt | BaselineToTextPaneBottom () const |
IMPORT_C TInt | TextPaneHeight () const |
TInt | AscentForCharacter (TChar aCharacter) const |
This provides the baseline relative to the top of the combined font for a specific character code. |
|
IMPORT_C TAknTextDecorationMetrics | TextDecorationMetrics () const |
Returns an object describing how the text with this font is to be decorated. |
|
IMPORT_C TAknFontCategory | FontCategory () const |
Returns the Avkon font category (EAknFontCategoryPrimary, EAknFontCategorySecondary. |
|
IMPORT_C TAknFontSpecification | FontSpecification () const |
This API allows the font to provide the metrics under which the font was requested. |
|
TFontSpec | DoFontSpecInTwips () const |
Static Public Member Functions |
|
static IMPORT_C const CAknLayoutFont * | AsCAknLayoutFontOrNull (const CFont *aFont) |
Returns if a font pointer cast to this type if the actual type conforms to this type. |
|
Protected Member Functions |
|
CAknLayoutFont (CBitmapDevice &aScreenDevice) | |
C++ Constructor. |
|
CBitmapDevice & | BitmapDevice () const |
void | SetExcessAscent (TInt aExcessAscent) |
void | SetExcessDescent (TInt aExcessDescent) |
void | SetBottomShortfall (TInt aBottomShortfall) |
void | SetTextPaneHeight (TInt aTextPaneHeight) |
|
C++ Destructor. |
|
C++ Constructor. |
|
Returns if a font pointer cast to this type if the actual type conforms to this type.
|
|
This provides the baseline relative to the top of the combined font for a specific character code. This value does not include any TopShortfall. |
|
|
|
|
Returns the Avkon font category (EAknFontCategoryPrimary, EAknFontCategorySecondary. ..) that was used to generate this font.
|
|
This API allows the font to provide the metrics under which the font was requested.
|
|
Return the maximum extent of any pixel in the font upwards from the baseline Measured up, so therefore it is a positive value.
|
|
Return the maximum extent of any pixel in the font down the baseline Measured down, so therefore it is usually a positive value.
|
|
|
|
|
|
Returns an object describing how the text with this font is to be decorated.
|
|
|
|
Update this object's binding to a CFbsFont, using the member data of the derived class. This method only needs to be called if the client owns the CAknLayoutFont object, and there has been a layout switch that may affect the font. It is functionally equivalent to deleting the CAknLayoutFont object, and reconstructing it with the same parameters. |