#include <mw/gulfont.h>
class TLogicalFont |
Public Attributes | |
---|---|
TFontCategory | iCategory |
TUid | iFontId |
TFontStyle | iStyle |
TZoomFactor | iZoomFactor |
Public Member Enumerations | |
---|---|
enum | TFontCategory { EView, EButton, EAnnotation, ETitle } |
enum | TFontStyle { ENormal, EBold, EItalic, EBoldItalic, ..., ECustom } |
Public Member Functions | |
---|---|
TLogicalFont() | |
TLogicalFont(TUid) | |
TLogicalFont(TFontCategory, TFontStyle, const TZoomFactor &) | |
TLogicalFont(TUid, TFontCategory, TFontStyle, const TZoomFactor &) |
Packages the attributes of a logical font.
These attributes include a UID (iFontId) and a category (iCategory), either of which can be used to identify a required system font. The possible values for the UID are defined in the UI variant's look and feel layer, so are not the same as the UID values that may be used to create a physical font.
An object of this class can be passed by any application to CEikonEnv::Font(), to return the closest matching system font (a CFont-derived object).
Logical font categories.
The font category specifies the type of font that is required. It can be specified as an alternative to the logical font UID. The physical fonts associated with these categories are specified in the LAF layer, so are UI variant-specific.
IMPORT_C | TLogicalFont | ( | ) |
The default constructor.
This initialises iFontId to KNullUid, iCategory to EView, iStyle to ENormal and iZoomFactor to a default zoom factor.
IMPORT_C | TLogicalFont | ( | TUid | aId | ) |
Constructor with a logical font ID.
The other member data is initialised as for the default constructor.
Parameter | Description |
---|---|
aId | The logical font ID. |
IMPORT_C | TLogicalFont | ( | TFontCategory | aCategory, |
TFontStyle | aStyle, | |||
const TZoomFactor & | aZoomFactor | |||
) |
Constructor with a logical font category, style and zoom factor.
iFontId is initialised to KNullUid.
Parameter | Description |
---|---|
aCategory | The logical font category. |
aStyle | The font style. |
aZoomFactor | The zoom factor. |
IMPORT_C | TLogicalFont | ( | TUid | aId, |
TFontCategory | aCategory, | |||
TFontStyle | aStyle, | |||
const TZoomFactor & | aZoomFactor | |||
) |
Constructs a logical font, specifying its logical font ID, logical font category, style and zoom factor.
Parameter | Description |
---|---|
aId | The logical font ID. |
aCategory | The logical font category. |
aStyle | The font style. |
aZoomFactor | The zoom factor. |