|
|
|
|
Location:
GDI.H
Link against: gdi.lib
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.
Defined in TTypeface:
Attributes(), EProportional, ESerif, ESymbol, ExternalizeL(), InternalizeL(), IsProportional(), IsSerif(), IsSymbol(), SetAttributes(), SetIsProportional(), SetIsSerif(), SetIsSymbol(), TTypeface(), anonymous, iName, operator==()
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.
The presence of this function means that the standard templated operator>>() (defined in s32strm.h) is available to internalise objects of this class.
|
IMPORT_C void 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.
|
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.
|
n/a
|
TBufC< KMaxTypefaceNameLength > iName;
The typeface name.