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 TInt | Attributes() |
IMPORT_C void | ExternalizeL(RWriteStream &) |
IMPORT_C void | InternalizeL(RReadStream &) |
IMPORT_C TBool | IsProportional() |
IMPORT_C TBool | IsSerif() |
IMPORT_C TBool | IsSymbol() |
IMPORT_C TInt | ScriptTypeForMetrics() |
IMPORT_C void | SetAttributes(TInt) |
IMPORT_C void | SetIsProportional(TBool) |
IMPORT_C void | SetIsSerif(TBool) |
IMPORT_C void | SetIsSymbol(TBool) |
IMPORT_C void | SetScriptTypeForMetrics(TLanguage) |
IMPORT_C void | SetScriptTypeForMetrics(TInt) |
IMPORT_C TBool | operator==(const TTypeface &) |
Private Member Functions | |
---|---|
void | ResetAttributes() |
void | ResetScriptType() |
Public Member Enumerations | |
---|---|
enum | anonymous { EProportional = 1, ESerif = 2, ESymbol = 4 } |
Public Attributes | |
---|---|
TBufC< KMaxTypefaceNameLength > | iName |
Private Attributes | |
---|---|
TUint32 | iFlags |
IMPORT_C void | ExternalizeL | ( | RWriteStream & | aStream | ) | const |
RWriteStream & aStream |
IMPORT_C void | InternalizeL | ( | RReadStream & | aStream | ) |
RReadStream & aStream |
IMPORT_C void | SetIsProportional | ( | TBool | aIsProportional | ) |
TBool aIsProportional |
IMPORT_C void | SetScriptTypeForMetrics | ( | TLanguage | aLanguage | ) |
TLanguage aLanguage |
IMPORT_C void | SetScriptTypeForMetrics | ( | TInt | aScript | ) |
TInt aScript |
IMPORT_C TBool | operator== | ( | const TTypeface & | aTypeface | ) | const |
const TTypeface & aTypeface |
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) |