Location:
gdi.h
Link against:
N/A
TTypeface
Supported from 5.0
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
:
Anonymous
, Attributes()
, EProportional
, ESerif
, ESymbol
, ExternalizeL()
, InternalizeL()
, IsProportional()
, IsSerif()
, IsSymbol()
, SetAttributes()
, SetIsProportional()
, SetIsSerif()
, SetIsSymbol()
, TTypeface()
, iName
, operator==()
TBool operator==(const TTypeface& aTypeface) const;
Compares typefaces for equality.
|
|
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.
|
|
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.
|
|
void SetIsProportional(TBool aIsProportional);
Sets the typeface's proportional attribute.
|
void SetIsSerif(TBool aIsSerif);
Sets the typeface's serif attribute.
|
void SetIsSymbol(TBool aIsSymbol);
Sets the typeface's symbol attribute.
|
TBool IsProportional() const;
Gets the typeface's proportional attribute.
|
TBool IsSerif() const;
Gets the typeface's serif attribute.
|
TBool IsSymbol() const;
Gets the typeface's symbol attribute.
|
void SetAttributes(TInt aMask);
Set the combination of attributes for this typeface.
|
TInt Attributes() const;
Gets the combination of attributes of the typeface.
|
Anonymous
Typeface attribute flags.
|
TBufC<KMaxTypefaceNameLength> iName
Typeface name.