Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: FNTSTORE.H
Link against: fntstr.lib

Class TAlgStyle

class TAlgStyle;

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.

Members

Defined in TAlgStyle:
HeightFactor(), IsBold(), IsItalic(), IsMono(), SetHeightFactor(), SetIsBold(), SetIsItalic(), SetIsMono(), SetWidthFactor(), TAlgStyle(), WidthFactor(), iBaselineOffsetInPixels, operator==()


Construction and destruction


TAlgStyle()

IMPORT_C TAlgStyle();

Description

Constructor.

[Top]


Member functions


SetIsBold()

IMPORT_C void SetIsBold(TBool aIsBold);

Description

Sets whether the font is bold.

Parameters

TBool aIsBold

ETrue if the font is bold; otherwise EFalse.


SetIsItalic()

IMPORT_C void SetIsItalic(TBool aIsItalic);

Description

Sets whether the font is italic.

Parameters

TBool aIsItalic

ETrue if the font is italic; otherwise EFalse.


SetIsMono()

IMPORT_C void SetIsMono(TBool aIsMono);

Description

Sets whether the font is mono width - i.e. all characters have the same width.

Parameters

TBool aIsMono

ETrue if the font is mono width; otherwise EFalse.


SetWidthFactor()

IMPORT_C void SetWidthFactor(TInt aWidthFactor);

Description

Sets the width factor.

Parameters

TInt aWidthFactor

A width factor.


SetHeightFactor()

IMPORT_C void SetHeightFactor(TInt aHeightFactor);

Description

Sets the height factor.

Parameters

TInt aHeightFactor

A height factor.


IsBold()

IMPORT_C TBool IsBold() const;

Description

Returns whether the font is bold.

Return value

TBool

ETrue if the font is bold; otherwise EFalse.


IsItalic()

IMPORT_C TBool IsItalic() const;

Description

Returns whether the font is italic.

Return value

TBool

ETrue if the font is italic; otherwise EFalse.


IsMono()

IMPORT_C TBool IsMono() const;

Description

Returns whether the font is mono - i.e. all characters have the same width.

Return value

TBool

ETrue if the font is mono; otherwise EFalse.


WidthFactor()

IMPORT_C TInt WidthFactor() const;

Description

Returns the width factor.

Return value

TInt

A width factor.


HeightFactor()

IMPORT_C TInt HeightFactor() const;

Description

Returns the height factor.

Return value

TInt

A height factor.


operator==()

IMPORT_C TBool operator==(const TAlgStyle &aAlgStyle) const;

Description

Parameters

const TAlgStyle &aAlgStyle

Return value

TBool

[Top]


Member data


iBaselineOffsetInPixels

TInt iBaselineOffsetInPixels;

Description

Baseline offset in pixels.