TFontStyle Class Reference

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.

CGraphicsContext::SetUnderlineStyle()

CGraphicsContext::SetStrikethroughStyle()

Constructor & Destructor Documentation

TFontStyle()

IMPORT_CTFontStyle()

TFontStyle(TFontPosture, TFontStrokeWeight, TFontPrintPosition)

IMPORT_CTFontStyle(TFontPostureaPost,
TFontStrokeWeightaStrWgt,
TFontPrintPositionaPrintPos
)

Parameters

TFontPosture aPost
TFontStrokeWeight aStrWgt
TFontPrintPosition aPrintPos

Member Functions Documentation

BitmapType()

TGlyphBitmapType BitmapType()const [inline]

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

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

Parameters

RWriteStream & aStream

InternalizeL(RReadStream &)

IMPORT_C voidInternalizeL(RReadStream &aStream)

Parameters

RReadStream & aStream

IsEffectOn(FontEffect::TEffect)

IMPORT_C TBoolIsEffectOn(FontEffect::TEffectaEffect)const

Parameters

FontEffect::TEffect aEffect

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

TGlyphBitmapType aBitmapTypeIndicates whether or not this font should be drawn using anti-aliasing.

SetEffects(TUint32)

IMPORT_C voidSetEffects(TUint32aEffects)

Parameters

TUint32 aEffects

SetEffects(FontEffect::TEffect, TBool)

IMPORT_C voidSetEffects(FontEffect::TEffectaEffect,
TBoolaOn
)

Parameters

FontEffect::TEffect aEffect
TBool aOn

SetPosture(TFontPosture)

IMPORT_C voidSetPosture(TFontPostureaPosture)

Parameters

TFontPosture aPosture

SetPrintPosition(TFontPrintPosition)

IMPORT_C voidSetPrintPosition(TFontPrintPositionaPrintPosition)

Parameters

TFontPrintPosition aPrintPosition

SetStrokeWeight(TFontStrokeWeight)

IMPORT_C voidSetStrokeWeight(TFontStrokeWeightaStrokeWeight)

Parameters

TFontStrokeWeight aStrokeWeight

StrokeWeight()

IMPORT_C TFontStrokeWeightStrokeWeight()const

operator==(const TFontStyle &)

IMPORT_C TBooloperator==(const TFontStyle &aFontStyle)const

Parameters

const TFontStyle & aFontStyle

Member Enumerations Documentation

Enum anonymous

Enumerators

EItalic = 0x1
EBold = 0x2
ESuper = 0x4
ESub = 0x8

Member Data Documentation

TUint32 iFlags

TUint32 iFlags[private]

TAny * iReserved1

TAny *iReserved1[private]

TAny * iReserved2

TAny *iReserved2[private]