TFontStyle Class Reference
Detailed Description
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()
Constructor & Destructor Documentation
TFontStyle ( )
TFontStyle ( TFontPosture, TFontStrokeWeight, TFontPrintPosition )
Member Function Documentation
BitmapType ( )
- Return Value
- Indicates whether or not this font should be drawn using anti-aliasing.
Effects ( )
ExternalizeL ( RWriteStream & )
InternalizeL ( RReadStream & )
IsEffectOn ( FontEffect::TEffect )
IMPORT_C TBool | IsEffectOn | ( | FontEffect::TEffect | aEffect | ) | const |
Posture ( )
PrintPosition ( )
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 |
---|
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 )
IMPORT_C void | SetEffects | ( | FontEffect::TEffect | aEffect, |
| TBool | aOn |
| ) | |
SetPosture ( TFontPosture )
SetPrintPosition ( TFontPrintPosition )
SetStrokeWeight ( TFontStrokeWeight )
StrokeWeight ( )
operator== ( const TFontStyle & )