![Symbian Developer Library](../../../../a_stock/images/mainheading.gif)
![]() |
![]() |
|
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()const
Gets the combination of attributes of the typeface.EProportional
Typeface is a proportional typeface (e.g. Swiss)ESerif
Typeface is a serif typeface (e.g. Times)ESymbol
Typeface is a symbol typeface (e.g. Symbol)ExternalizeL(RWriteStream &)const
Externalises a typeface to a write stream.InternalizeL(RReadStream &)
Internalises a typeface from a read stream.IsProportional()const
Gets the typeface's proportional attribute.IsSerif()const
Gets the typeface's serif attribute.IsSymbol()const
Gets the typeface's symbol attribute.SetAttributes(TInt)
Set the combination of attributes for this typeface.SetIsProportional(TBool)
Sets the typeface's proportional attribute.SetIsSerif(TBool)
Sets the typeface's serif attribute.SetIsSymbol(TBool)
Sets the typeface's symbol attribute.TTypeface()
Default C++ constructor. anonymous
iName
The typeface name. operator==(const TTypeface &)const
Compares two typefaces for equality.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>>(RReadStream &,T &)
(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<<(RWriteStream &,const T &)
(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.