#include <gdi.h>
| class TFontSpec |
| Public Attributes | |
|---|---|
| TFontStyle | iFontStyle |
| TInt | iHeight |
| TTypeface | iTypeface |
| Public Member Functions | |
|---|---|
| TFontSpec() | |
| TFontSpec(const TDesC &, TInt) | |
| IMPORT_C void | ExternalizeL(RWriteStream &) |
| IMPORT_C void | InternalizeL(RReadStream &) |
| IMPORT_C TInt | ScriptTypeForMetrics() |
| IMPORT_C void | SetScriptTypeForMetrics(TLanguage) |
| IMPORT_C TBool | operator==(const TFontSpec &) |
Specifies the font specification in device independent terms.
| IMPORT_C | TFontSpec | ( | ) |
Default constructor.
The object's font style is set to the default: EPostureUpright, EStrokeWeightNormal, and EPrintPosNormal.
Constructs a TFontSpec object with the specified typeface and height.
The object's font style is set to the default: EPostureUpright, EStrokeWeightNormal, and EPrintPosNormal.
| Parameter | Description |
|---|---|
| aTypefaceName | The name of the typeface (e.g. "Roman"). It should be no longer than KMaxTypefaceNameLength characters in length. |
| aHeight | The height of the typeface, in twips. |
| IMPORT_C void | ExternalizeL | ( | RWriteStream & | aStream | ) | const |
Externalises the font specification to a write stream.
The presence of this function means that the standard templated operator<<() (defined in s32strm.h) is available to externalise objects of this class.
| Parameter | Description |
|---|---|
| aStream | The stream to which the font specification is to be externalised |
| IMPORT_C void | InternalizeL | ( | RReadStream & | aStream | ) |
Internalises a font specification from a read stream.
The presence of this function means that the standard templated operator>>() (defined in s32strm.h) is available to internalise objects of this class.
| Parameter | Description |
|---|---|
| aStream | The stream from which the font specification is to be internalised. |
| IMPORT_C TInt | ScriptTypeForMetrics | ( | ) | const |
Returns the script with which font metrics calculation will be based on.
| IMPORT_C void | SetScriptTypeForMetrics | ( | TLanguage | aLanguage | ) |
Specifies the script with which font metrics calculation will be based on.
| Parameter | Description |
|---|---|
| aLanguage | The language used to derive the required script. |