TTypeface Class Reference
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
Member Enumeration Documentation
Enum anonymous
Enumerator | Value | Description |
---|
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)
|
Constructor & Destructor Documentation
TTypeface ( )
Member Function Documentation
Attributes ( )
IMPORT_C TInt | Attributes | ( | ) | const |
ExternalizeL ( RWriteStream & )
InternalizeL ( RReadStream & )
IsProportional ( )
IMPORT_C TBool | IsProportional | ( | ) | const |
IsSerif ( )
IMPORT_C TBool | IsSerif | ( | ) | const |
IsSymbol ( )
IMPORT_C TBool | IsSymbol | ( | ) | const |
Name ( )
IMPORT_C const TDesC & | Name | ( | ) | const |
ScriptTypeForMetrics ( )
IMPORT_C TInt | ScriptTypeForMetrics | ( | ) | const |
SetAttributes ( TInt )
IMPORT_C void | SetAttributes | ( | TInt | aAttributes | ) | |
SetIsProportional ( TBool )
IMPORT_C void | SetIsProportional | ( | TBool | aIsProportional | ) | |
SetIsSerif ( TBool )
IMPORT_C void | SetIsSerif | ( | TBool | aIsSerif | ) | |
SetIsSymbol ( TBool )
IMPORT_C void | SetIsSymbol | ( | TBool | aIsSymbol | ) | |
SetName ( const TDesC & )
IMPORT_C void | SetName | ( | const TDesC & | aName | ) | |
SetScriptTypeForMetrics ( TLanguage )
IMPORT_C void | SetScriptTypeForMetrics | ( | TLanguage | aLanguage | ) | |
SetScriptTypeForMetrics ( TInt )
IMPORT_C void | SetScriptTypeForMetrics | ( | TInt | aScript | ) | |
operator== ( const TTypeface & )