|
Original Symbian headers
Selected EUSER, Window Server, networking, graphics and device declarations
|
Typeface name and attributes. More...
#include <gdi.h>
Public Types | |
| enum | { EProportional = 1 , ESerif = 2 , ESymbol = 4 } |
Public Member Functions | |
| IMPORT_C | TTypeface () |
| Default C++ constructor. | |
| IMPORT_C TBool | operator== (const TTypeface &aTypeface) const |
| Compares two typefaces for equality. | |
| IMPORT_C void | InternalizeL (RReadStream &aStream) |
| Internalises a typeface from a read stream. | |
| IMPORT_C void | ExternalizeL (RWriteStream &aStream) const |
| Externalises a typeface to a write stream. | |
| IMPORT_C void | SetAttributes (TInt aAttributes) |
| Set the combination of attributes for this typeface. | |
| IMPORT_C void | SetIsProportional (TBool aIsProportional) |
| Sets the typeface's proportional attribute. | |
| IMPORT_C void | SetIsSerif (TBool aIsSerif) |
| Sets the typeface's serif attribute. | |
| IMPORT_C void | SetIsSymbol (TBool aIsSymbol) |
| Sets the typeface's symbol attribute. | |
| IMPORT_C TInt | Attributes () const |
| Gets the combination of attributes of the typeface. | |
| IMPORT_C TBool | IsProportional () const |
| Gets the typeface's proportional attribute. | |
| IMPORT_C TBool | IsSerif () const |
| Gets the typeface's serif attribute. | |
| IMPORT_C TBool | IsSymbol () const |
| Gets the typeface's symbol attribute. | |
| IMPORT_C void | SetScriptTypeForMetrics (TLanguage aLanguage) |
| Specifies the script with which font metrics calculation will be based on. | |
| IMPORT_C void | SetScriptTypeForMetrics (TInt aScript) |
| Specifies the script with which font metrics calculation will be based on. | |
| IMPORT_C TInt | ScriptTypeForMetrics () const |
| Gets the script with which font metrics calculation will be based on. | |
| IMPORT_C void | SetName (const TDesC &aName) |
| IMPORT_C const TDesC & | Name () const |
| Returns the name of the typeface. | |
Public Attributes | |
| TBufC< KMaxTypefaceNameLength > | iName |
| The typeface name. | |
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.
| anonymous enum |
| IMPORT_C TTypeface::TTypeface | ( | ) |
Default C++ constructor.
(generated from Symbian Developer Library)
| IMPORT_C TInt TTypeface::Attributes | ( | ) | const |
Gets the combination of attributes of the typeface.
(generated from Symbian Developer Library)
| IMPORT_C void TTypeface::ExternalizeL | ( | RWriteStream & | aStream | ) | const |
Externalises a typeface 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.
| aStream | The stream to which the typeface is to be externalised. |
(generated from Symbian Developer Library)
| IMPORT_C void TTypeface::InternalizeL | ( | RReadStream & | aStream | ) |
Internalises a typeface 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.
| aStream | Stream from which the typeface is to be internalised. |
(generated from Symbian Developer Library)
| IMPORT_C TBool TTypeface::IsProportional | ( | ) | const |
Gets the typeface's proportional attribute.
(generated from Symbian Developer Library)
| IMPORT_C TBool TTypeface::IsSerif | ( | ) | const |
Gets the typeface's serif attribute.
(generated from Symbian Developer Library)
| IMPORT_C TBool TTypeface::IsSymbol | ( | ) | const |
Gets the typeface's symbol attribute.
(generated from Symbian Developer Library)
| IMPORT_C const TDesC & TTypeface::Name | ( | ) | const |
Returns the name of the typeface.
(generated from Symbian Developer Library)
| IMPORT_C TBool TTypeface::operator== | ( | const TTypeface & | aTypeface | ) | const |
Compares two typefaces for equality.
| aTypeface | The typeface to be compared with. |
(generated from Symbian Developer Library)
| IMPORT_C TInt TTypeface::ScriptTypeForMetrics | ( | ) | const |
Gets the script with which font metrics calculation will be based on.
(generated from Symbian Developer Library)
| IMPORT_C void TTypeface::SetAttributes | ( | TInt | aAttributes | ) |
Set the combination of attributes for this typeface.
| aAttributes | A bitmap defining the combination of attributes. |
(generated from Symbian Developer Library)
| IMPORT_C void TTypeface::SetIsProportional | ( | TBool | aIsProportional | ) |
Sets the typeface's proportional attribute.
| aIsProportional | ETrue if the typeface is a proportional typeface, otherwise EFalse. |
(generated from Symbian Developer Library)
| IMPORT_C void TTypeface::SetIsSerif | ( | TBool | aIsSerif | ) |
Sets the typeface's serif attribute.
| aIsSerif | ETrue if the typeface is a serif typeface, otherwise EFalse. |
(generated from Symbian Developer Library)
| IMPORT_C void TTypeface::SetIsSymbol | ( | TBool | aIsSymbol | ) |
Sets the typeface's symbol attribute.
| aIsSymbol | ETrue if the typeface is a symbol typeface, otherwise EFalse. |
(generated from Symbian Developer Library)
| IMPORT_C void TTypeface::SetName | ( | const TDesC & | aName | ) |
| aName | The name of the typeface (e.g. "Roman"). It should be no longer than KMaxTypefaceNameLength characters in length. |
Panic condition: GDI 6, if aName is more than KMaxTypefaceNameLength characters long.
(generated from Symbian Developer Library)
| IMPORT_C void TTypeface::SetScriptTypeForMetrics | ( | TInt | aScript | ) |
Specifies the script with which font metrics calculation will be based on.
| aScript | The script. |
(generated from Symbian Developer Library)
| IMPORT_C void TTypeface::SetScriptTypeForMetrics | ( | TLanguage | aLanguage | ) |
Specifies the script with which font metrics calculation will be based on.
| aLanguage | The language used to derive the required script. |
(generated from Symbian Developer Library)
| TBufC<KMaxTypefaceNameLength> TTypeface::iName |