TTypeface Class Reference

class TTypeface

Typeface name and attributes.

This class identifies a typeface by name, and contains the combination of attributes of the typeface. These attributes define whether it is a symbol typeface, whether the typeface is proportional, and whether it is serif or sans-serif.

The combination of attributes for a typeface are stored in a bitmask, with the various bits indicating different attributes. The bitmask is calculated for any particular attribute combination by ORing the enumerated value for each individual attribute.

Public Member Functions
TTypeface()
IMPORT_C TIntAttributes()
IMPORT_C voidExternalizeL(RWriteStream &)
IMPORT_C voidInternalizeL(RReadStream &)
IMPORT_C TBoolIsProportional()
IMPORT_C TBoolIsSerif()
IMPORT_C TBoolIsSymbol()
IMPORT_C TIntScriptTypeForMetrics()
IMPORT_C voidSetAttributes(TInt)
IMPORT_C voidSetIsProportional(TBool)
IMPORT_C voidSetIsSerif(TBool)
IMPORT_C voidSetIsSymbol(TBool)
IMPORT_C voidSetScriptTypeForMetrics(TLanguage)
IMPORT_C voidSetScriptTypeForMetrics(TInt)
IMPORT_C TBooloperator==(const TTypeface &)
Private Member Functions
voidResetAttributes()
voidResetScriptType()
Public Member Enumerations
enumanonymous { EProportional = 1, ESerif = 2, ESymbol = 4 }
Public Attributes
TBufC< KMaxTypefaceNameLength >iName
Private Attributes
TUint32 iFlags

Constructor & Destructor Documentation

TTypeface()

IMPORT_CTTypeface()

Member Functions Documentation

Attributes()

IMPORT_C TIntAttributes()const

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aStream)const

Parameters

RWriteStream & aStream

InternalizeL(RReadStream &)

IMPORT_C voidInternalizeL(RReadStream &aStream)

Parameters

RReadStream & aStream

IsProportional()

IMPORT_C TBoolIsProportional()const

IsSerif()

IMPORT_C TBoolIsSerif()const

IsSymbol()

IMPORT_C TBoolIsSymbol()const

ResetAttributes()

voidResetAttributes()[private]

ResetScriptType()

voidResetScriptType()[private]

ScriptTypeForMetrics()

IMPORT_C TIntScriptTypeForMetrics()const

SetAttributes(TInt)

IMPORT_C voidSetAttributes(TIntaAttributes)

Parameters

TInt aAttributes

SetIsProportional(TBool)

IMPORT_C voidSetIsProportional(TBoolaIsProportional)

Parameters

TBool aIsProportional

SetIsSerif(TBool)

IMPORT_C voidSetIsSerif(TBoolaIsSerif)

Parameters

TBool aIsSerif

SetIsSymbol(TBool)

IMPORT_C voidSetIsSymbol(TBoolaIsSymbol)

Parameters

TBool aIsSymbol

SetScriptTypeForMetrics(TLanguage)

IMPORT_C voidSetScriptTypeForMetrics(TLanguageaLanguage)

Parameters

TLanguage aLanguage

SetScriptTypeForMetrics(TInt)

IMPORT_C voidSetScriptTypeForMetrics(TIntaScript)

Parameters

TInt aScript

operator==(const TTypeface &)

IMPORT_C TBooloperator==(const TTypeface &aTypeface)const

Parameters

const TTypeface & aTypeface

Member Enumerations Documentation

Enum anonymous

Enumerators

EProportional = 1

Typeface is a proportional typeface (e.g. Swiss)

ESerif = 2

Typeface is a serif typeface (e.g. Times)

ESymbol = 4

Typeface is a symbol typeface (e.g. Symbol)

Member Data Documentation

TUint32 iFlags

TUint32 iFlags[private]

TBufC< KMaxTypefaceNameLength > iName

TBufC< KMaxTypefaceNameLength >iName

The typeface name.