TFontStyle Class Reference

#include <textbase.h>

class TFontStyle

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 ( )

IMPORT_CTFontStyle()

TFontStyle ( TFontPosture, TFontStrokeWeight, TFontPrintPosition )

IMPORT_CTFontStyle(TFontPostureaPost,
TFontStrokeWeightaStrWgt,
TFontPrintPositionaPrintPos
)

Member Function Documentation

BitmapType ( )

TGlyphBitmapType BitmapType()const [inline]

Gets the anti-aliasing setting for the font, as set by SetBitmapType().

Return Value
Indicates whether or not this font should be drawn using anti-aliasing.

Effects ( )

IMPORT_C TUint32Effects()const

ExternalizeL ( RWriteStream & )

IMPORT_C voidExternalizeL(RWriteStream &aStream)const

InternalizeL ( RReadStream & )

IMPORT_C voidInternalizeL(RReadStream &aStream)

IsEffectOn ( FontEffect::TEffect )

IMPORT_C TBoolIsEffectOn(FontEffect::TEffectaEffect)const

Posture ( )

IMPORT_C TFontPosturePosture()const

PrintPosition ( )

IMPORT_C TFontPrintPositionPrintPosition()const

SetBitmapType ( TGlyphBitmapType )

voidSetBitmapType(TGlyphBitmapTypeaBitmapType)[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
aBitmapTypeIndicates whether or not this font should be drawn using anti-aliasing.

SetEffects ( TUint32 )

IMPORT_C voidSetEffects(TUint32aEffects)

SetEffects ( FontEffect::TEffect, TBool )

IMPORT_C voidSetEffects(FontEffect::TEffectaEffect,
TBoolaOn
)

SetPosture ( TFontPosture )

IMPORT_C voidSetPosture(TFontPostureaPosture)

SetPrintPosition ( TFontPrintPosition )

IMPORT_C voidSetPrintPosition(TFontPrintPositionaPrintPosition)

SetStrokeWeight ( TFontStrokeWeight )

IMPORT_C voidSetStrokeWeight(TFontStrokeWeightaStrokeWeight)

StrokeWeight ( )

IMPORT_C TFontStrokeWeightStrokeWeight()const

operator== ( const TFontStyle & )

IMPORT_C TBooloperator==(const TFontStyle &aFontStyle)const