#include <textbase.h>
class TFontStyle |
Public Member Functions | |
---|---|
TFontStyle() | |
TFontStyle(TFontPosture, TFontStrokeWeight, TFontPrintPosition) | |
TGlyphBitmapType | BitmapType() |
IMPORT_C TUint32 | Effects() |
IMPORT_C void | ExternalizeL(RWriteStream &) |
IMPORT_C void | InternalizeL(RReadStream &) |
IMPORT_C TBool | IsEffectOn(FontEffect::TEffect) |
IMPORT_C TFontPosture | Posture() |
IMPORT_C TFontPrintPosition | PrintPosition() |
void | SetBitmapType(TGlyphBitmapType) |
IMPORT_C void | SetEffects(TUint32) |
IMPORT_C void | SetEffects(FontEffect::TEffect, TBool) |
IMPORT_C void | SetPosture(TFontPosture) |
IMPORT_C void | SetPrintPosition(TFontPrintPosition) |
IMPORT_C void | SetStrokeWeight(TFontStrokeWeight) |
IMPORT_C TFontStrokeWeight | StrokeWeight() |
IMPORT_C TBool | operator==(const 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.
See also: CGraphicsContext::SetUnderlineStyle() CGraphicsContext::SetStrikethroughStyle()
IMPORT_C | TFontStyle | ( | ) |
IMPORT_C | TFontStyle | ( | TFontPosture | aPost, |
TFontStrokeWeight | aStrWgt, | |||
TFontPrintPosition | aPrintPos | |||
) |
TGlyphBitmapType | BitmapType | ( | ) | const [inline] |
Gets the anti-aliasing setting for the font, as set by SetBitmapType().
IMPORT_C TUint32 | Effects | ( | ) | const |
IMPORT_C void | ExternalizeL | ( | RWriteStream & | aStream | ) | const |
IMPORT_C void | InternalizeL | ( | RReadStream & | aStream | ) |
IMPORT_C TBool | IsEffectOn | ( | FontEffect::TEffect | aEffect | ) | const |
IMPORT_C TFontPosture | Posture | ( | ) | const |
IMPORT_C TFontPrintPosition | PrintPosition | ( | ) | const |
void | SetBitmapType | ( | TGlyphBitmapType | aBitmapType | ) | [inline] |
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 | |
---|---|
aBitmapType | Indicates whether or not this font should be drawn using anti-aliasing. |
IMPORT_C void | SetEffects | ( | TUint32 | aEffects | ) |
IMPORT_C void | SetEffects | ( | FontEffect::TEffect | aEffect, |
TBool | aOn | |||
) |
IMPORT_C void | SetPosture | ( | TFontPosture | aPosture | ) |
IMPORT_C void | SetPrintPosition | ( | TFontPrintPosition | aPrintPosition | ) |
IMPORT_C void | SetStrokeWeight | ( | TFontStrokeWeight | aStrokeWeight | ) |