|
||
class TFontStyle;
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 attributes are not included in this class, but are set in the graphics context.
Defined in TFontStyle
:
BitmapType()const
Gets the anti-aliasing setting for the font, as set by TFontStyle::SetBitmapType...Effects()const
Gets the font effects flags. ExternalizeL(RWriteStream &)const
Externalises the font style to a write stream.InternalizeL(RReadStream &)
Internalises a font style from a read stream.Posture()const
Gets the posture attribute.PrintPosition()const
Gets the print position attribute.SetBitmapType(TGlyphBitmapType)
Sets whether the font should be drawn using anti-aliasing. If set, this value ov...SetEffects(TUint32)
Sets the font effects flags. SetPosture(TFontPosture)
Sets the posture attribute.SetPrintPosition(TFontPrintPosition)
Sets the print position attribute.SetStrokeWeight(TFontStrokeWeight)
Sets the stroke weight attribute.StrokeWeight()const
Gets the stroke weight attribute.TFontStyle()
Default C++ constructor. TFontStyle(TFontPosture,TFontStrokeWeight,TFontPrintPosition)
Constructs a TFontStyle object with the specified attributes. operator==(const TFontStyle &)const
Compares a font style for equality. CGraphicsContext::SetUnderlineStyle(TFontUnderline)
Sets the underline style.CGraphicsContext::SetStrikethroughStyle(TFontStrikethrough)
Sets the strikethrough style.IMPORT_C TFontStyle(TFontPosture aPost, TFontStrokeWeight aStrWgt, TFontPrintPosition aPrintPos);
Constructs a TFontStyle object with the specified attributes.
|
IMPORT_C void InternalizeL(RReadStream &aStream);
Internalises a font style 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 the font style 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 TFontPosture Posture() const;
Gets the posture attribute.
|
IMPORT_C TFontStrokeWeight StrokeWeight() const;
Gets the stroke weight attribute.
|
IMPORT_C TFontPrintPosition PrintPosition() const;
Gets the print position attribute.
|
IMPORT_C void SetPosture(TFontPosture aPosture);
Sets the posture attribute.
|
IMPORT_C void SetStrokeWeight(TFontStrokeWeight aStrokeWeight);
Sets the stroke weight attribute.
|
IMPORT_C void SetPrintPosition(TFontPrintPosition aPrintPosition);
Sets the print position attribute.
|
inline TGlyphBitmapType BitmapType() const;
Gets the anti-aliasing setting for the font, as set by TFontStyle::SetBitmapType(TGlyphBitmapType)
.
|
inline void SetBitmapType(TGlyphBitmapType aBitmapType);
Sets whether the font should be drawn using anti-aliasing. If set, this value overrides the default setting (set by CFbsTypefaceStore::SetDefaultBitmapType()) for this font.
Anti-aliasing can only be used for scalable fonts. There is currently no anti-aliasing support for bitmapped fonts.
|
IMPORT_C TBool operator==(const TFontStyle &aFontStyle) const;
Compares a font style for equality.
|
|
IMPORT_C TUint32 Effects() const;
Gets the font effects flags.
|
TFontStyle::SetEffects(TUint32)
Sets the font effects flags. IMPORT_C TBool IsEffectOn(FontEffect::TEffect aEffect) const;
Checks if a font effect is on.
|
|
TFontStyle::SetEffects(TUint32)
Sets the font effects flags. IMPORT_C void SetEffects(TUint32 aEffects);
Sets the font effects flags.
|
TFontStyle::Effects()const
Gets the font effects flags. IMPORT_C void SetEffects(FontEffect::TEffect aEffect, TBool aOn);
Sets a font effect to the given state.
|
TFontStyle::IsEffectOn(FontEffect::TEffect)const
Checks if a font effect is on.