Location:
gdi.h
Link against:
N/A
TFontStyle
Supported from 5.0
Encapsulates a font style.
The font style information is comprised of:
the posture of the font — upright or italic
the stroke weight of the font — normal or bold
the print position of the font — normal, subscript or superscript
Note that the underline and strike-through styles are not included in this class, but are set in the graphics context.
Defined in TFontStyle
:
ExternalizeL()
, InternalizeL()
, Posture()
, PrintPosition()
, SetPosture()
, SetPrintPosition()
, SetStrokeWeight()
, StrokeWeight()
, TFontStyle()
, operator==()
TFontStyle(TFontPosture aPost,TFontStrokeWeight aStrWgt,TFontPrintPosition aPrintPos);
Constructs a TFontStyle
object with the specified attributes.
|
TBool operator==(const TFontStyle& aFontStyle) const;
Compares a font style for equality.
|
|
void ExternalizeL(RWriteStream& aStream) const;
Externalises the font style 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 font style 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 SetPosture(TFontPosture aPosture);
Sets the posture attribute of the font style.
|
void SetStrokeWeight(TFontStrokeWeight aStrokeWeight);
Sets the stroke weight attribute of the font style.
|
void SetPrintPosition(TFontPrintPosition aPrintPosition);
Sets the print position attribute of the font style.
|
TFontPosture Posture() const;
Gets the posture attribute of the font style.
|
TFontStrokeWeight StrokeWeight() const;
Gets the stroke weight attribute of the font style.
|
TFontPrintPosition PrintPosition() const;
Gets the print position attribute of the font style.
|