TAlgStyle Class Reference
Detailed Description
An algorithmic style for how a font is drawn.
Holds attributes such as whether the font is bold or italic, and the width and height factors. This is used as an input parameter for the GetFontById() method of some font management classes. See CWsScreenDevice::GetFontById() for more information.
See also: CWsScreenDevice::GetFontById() CFbsTypefaceStore::GetFontById() CFbsDevice::GetFontById()
Member Attribute Documentation
iBaselineOffsetInPixels
TInt
| iBaselineOffsetInPixels |
Baseline offset in pixels.
Constructor & Destructor Documentation
Member Function Documentation
HeightFactor ( )
IMPORT_C TInt | HeightFactor | ( | ) | const |
Returns the height factor.
Returns: A height factor.
IsBold ( )
IMPORT_C TBool | IsBold | ( | ) | const |
Returns whether the font is bold.
Returns: ETrue if the font is bold; otherwise EFalse.
IsItalic ( )
IMPORT_C TBool | IsItalic | ( | ) | const |
Returns whether the font is italic.
Returns: ETrue if the font is italic; otherwise EFalse.
IsMono ( )
IMPORT_C TBool | IsMono | ( | ) | const |
Returns whether the font is mono - i.e. all characters have the same width.
Returns: ETrue if the font is mono; otherwise EFalse.
SetHeightFactor ( TInt )
IMPORT_C void | SetHeightFactor | ( | TInt | aHeightFactor | ) | |
Parameter | Description | aHeightFactor | A height factor. |
SetIsBold ( TBool )
IMPORT_C void | SetIsBold | ( | TBool | aIsBold | ) | |
Sets whether the font is bold.
Parameter | Description | aIsBold | ETrue if the font is bold; otherwise EFalse. |
SetIsItalic ( TBool )
IMPORT_C void | SetIsItalic | ( | TBool | aIsItalic | ) | |
Sets whether the font is italic.
Parameter | Description | aIsItalic | ETrue if the font is italic; otherwise EFalse. |
SetIsMono ( TBool )
IMPORT_C void | SetIsMono | ( | TBool | aIsMono | ) | |
Sets whether the font is mono width - i.e. all characters have the same width.
Parameter | Description | aIsMono | ETrue if the font is mono width; otherwise EFalse. |
SetWidthFactor ( TInt )
IMPORT_C void | SetWidthFactor | ( | TInt | aWidthFactor | ) | |
Parameter | Description | aWidthFactor | A width factor. |
WidthFactor ( )
IMPORT_C TInt | WidthFactor | ( | ) | const |
Returns the width factor.
operator!= ( const TAlgStyle & )
operator== ( const TAlgStyle & )