TAlgStyle Class Reference

#include <fntstore.h>

Link against: fntstr.lib

class TAlgStyle
Public Attributes
TInt iBaselineOffsetInPixels
Public Member Functions
TAlgStyle()
IMPORT_C TIntHeightFactor()
IMPORT_C TBoolIsBold()
IMPORT_C TBoolIsItalic()
IMPORT_C TBoolIsMono()
IMPORT_C voidSetHeightFactor(TInt)
IMPORT_C voidSetIsBold(TBool)
IMPORT_C voidSetIsItalic(TBool)
IMPORT_C voidSetIsMono(TBool)
IMPORT_C voidSetWidthFactor(TInt)
IMPORT_C TIntWidthFactor()
TBool operator!=(const TAlgStyle &)
IMPORT_C TBooloperator==(const TAlgStyle &)

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

TAlgStyle ( )

IMPORT_CTAlgStyle()

Constructor.

Member Function Documentation

HeightFactor ( )

IMPORT_C TIntHeightFactor()const

Returns the height factor.

Returns: A height factor.

IsBold ( )

IMPORT_C TBoolIsBold()const

Returns whether the font is bold.

Returns: ETrue if the font is bold; otherwise EFalse.

IsItalic ( )

IMPORT_C TBoolIsItalic()const

Returns whether the font is italic.

Returns: ETrue if the font is italic; otherwise EFalse.

IsMono ( )

IMPORT_C TBoolIsMono()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 voidSetHeightFactor(TIntaHeightFactor)

Sets the height factor.

ParameterDescription
aHeightFactorA height factor.

SetIsBold ( TBool )

IMPORT_C voidSetIsBold(TBoolaIsBold)

Sets whether the font is bold.

ParameterDescription
aIsBoldETrue if the font is bold; otherwise EFalse.

SetIsItalic ( TBool )

IMPORT_C voidSetIsItalic(TBoolaIsItalic)

Sets whether the font is italic.

ParameterDescription
aIsItalicETrue if the font is italic; otherwise EFalse.

SetIsMono ( TBool )

IMPORT_C voidSetIsMono(TBoolaIsMono)

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

ParameterDescription
aIsMonoETrue if the font is mono width; otherwise EFalse.

SetWidthFactor ( TInt )

IMPORT_C voidSetWidthFactor(TIntaWidthFactor)

Sets the width factor.

ParameterDescription
aWidthFactorA width factor.

WidthFactor ( )

IMPORT_C TIntWidthFactor()const

Returns the width factor.

Returns: A width factor.

operator!= ( const TAlgStyle & )

TBool operator!=(const TAlgStyle &aAlgStyle)const

operator== ( const TAlgStyle & )

IMPORT_C TBooloperator==(const TAlgStyle &aAlgStyle)const