TTypeface Class Reference

#include <textbase.h>

class TTypeface
Public Attributes
TBufC< KMaxTypefaceNameLength >iName
Public Member Enumerations
enumanonymous { EProportional, ESerif, ESymbol }
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 const TDesC &Name()
IMPORT_C TIntScriptTypeForMetrics()
IMPORT_C voidSetAttributes(TInt)
IMPORT_C voidSetIsProportional(TBool)
IMPORT_C voidSetIsSerif(TBool)
IMPORT_C voidSetIsSymbol(TBool)
IMPORT_C voidSetName(const TDesC &)
IMPORT_C voidSetScriptTypeForMetrics(TLanguage)
IMPORT_C voidSetScriptTypeForMetrics(TInt)
IMPORT_C TBooloperator==(const TTypeface &)

Detailed Description

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.

Member Attribute Documentation

iName

The typeface name.

Member Enumeration Documentation

Enum anonymous

EnumeratorValueDescription
EProportional1

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

ESerif2

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

ESymbol4

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

Constructor & Destructor Documentation

TTypeface ( )

IMPORT_CTTypeface()

Member Function Documentation

Attributes ( )

IMPORT_C TIntAttributes()const

ExternalizeL ( RWriteStream & )

IMPORT_C voidExternalizeL(RWriteStream &aStream)const

InternalizeL ( RReadStream & )

IMPORT_C voidInternalizeL(RReadStream &aStream)

IsProportional ( )

IMPORT_C TBoolIsProportional()const

IsSerif ( )

IMPORT_C TBoolIsSerif()const

IsSymbol ( )

IMPORT_C TBoolIsSymbol()const

Name ( )

IMPORT_C const TDesC &Name()const

ScriptTypeForMetrics ( )

IMPORT_C TIntScriptTypeForMetrics()const

SetAttributes ( TInt )

IMPORT_C voidSetAttributes(TIntaAttributes)

SetIsProportional ( TBool )

IMPORT_C voidSetIsProportional(TBoolaIsProportional)

SetIsSerif ( TBool )

IMPORT_C voidSetIsSerif(TBoolaIsSerif)

SetIsSymbol ( TBool )

IMPORT_C voidSetIsSymbol(TBoolaIsSymbol)

SetName ( const TDesC & )

IMPORT_C voidSetName(const TDesC &aName)

SetScriptTypeForMetrics ( TLanguage )

IMPORT_C voidSetScriptTypeForMetrics(TLanguageaLanguage)

SetScriptTypeForMetrics ( TInt )

IMPORT_C voidSetScriptTypeForMetrics(TIntaScript)

operator== ( const TTypeface & )

IMPORT_C TBooloperator==(const TTypeface &aTypeface)const