TFontStyle Class Reference
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.
CGraphicsContext::SetUnderlineStyle() CGraphicsContext::SetStrikethroughStyle()
Constructor & Destructor Documentation
TFontStyle(TFontPosture, TFontStrokeWeight, TFontPrintPosition)
Constructs a TFontStyle object with the specified attributes.
Member Functions Documentation
ExternalizeL(RWriteStream &)
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.
-
leave
- KErrNoMemory This function may leave, if the write action causes the stream's resources to be exhausted.
Parameters
RWriteStream & aStream | The stream to which the font style is to be externalised. |
InternalizeL(RReadStream &)
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.
-
leave
- KErrNoMemory If there is a problem reading from the stream. If internalisation causes an out of memory error.
Parameters
RReadStream & aStream | The stream from which the font style is to be internalised |
IsEffectOn(FontEffect::TEffect)
Posture()
Gets the posture attribute.
PrintPosition()
Gets the print position attribute.
SetBitmapType(TGlyphBitmapType)
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.
Parameters
TGlyphBitmapType aBitmapType | Indicates whether or not this font should be drawn using anti-aliasing. |
SetEffects(TUint32)
IMPORT_C void | SetEffects | ( | TUint32 | aEffects | ) | |
SetEffects(FontEffect::TEffect, TBool)
SetPosture(TFontPosture)
Sets the posture attribute.
SetPrintPosition(TFontPrintPosition)
Sets the print position attribute.
SetStrokeWeight(TFontStrokeWeight)
Sets the stroke weight attribute.
StrokeWeight()
Gets the stroke weight attribute.
operator==(const TFontStyle &)
Compares a font style for equality.
Parameters
const TFontStyle & aFontStyle | The font style to be compared with this font style. |
Member Enumerations Documentation
Enum anonymous
Enumerators
EItalic = 0x1 | |
EBold = 0x2 | |
ESuper = 0x4 | |
ESub = 0x8 | |
Member Data Documentation
TAny * iReserved1
TAny * | iReserved1 | [private] |
TAny * iReserved2
TAny * | iReserved2 | [private] |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.