TOpenFontMetrics Class Reference

class TOpenFontMetrics

Constructor & Destructor Documentation

TOpenFontMetrics()

TOpenFontMetrics()[inline]

Default C++ constructor.

This creates then zero fills the object.

TOpenFontMetrics(const CFont *)

IMPORT_CTOpenFontMetrics(const CFont *aFont)

Parameters

const CFont * aFont

Member Functions Documentation

Ascent()

TInt Ascent()const [inline]

Gets the font's ascent.

This is the ascent for the Latin character which is highest above the baseline.

SetAscent()

BaselineCorrection()

IMPORT_C TIntBaselineCorrection()

Descent()

TInt Descent()const [inline]

Gets the font's descent.

This is the descent for the Latin character in the font which falls furthest below the baseline.

SetDescent()

MaxDepth()

TInt MaxDepth()const [inline]

Gets the font's maximum depth.

Note: If this object was initialised from the CFont this will be the same as the descent.

This is the descent for the character in the font which falls furthest below the baseline.

SetMaxDepth()

MaxHeight()

TInt MaxHeight()const [inline]

Sets the font's maximum height.

Note that if this object was initialised from the CFont this will be the same as the ascent.

This is the ascent for the character which is highest above the baseline. In many fonts this will be the height of an accented character like , including the accent.

SetMaxDepth()

MaxWidth()

TInt MaxWidth()const [inline]

Gets the maximum character width, in pixels.

SetMaxWidth()

SetAscent(TInt)

voidSetAscent(TIntaAscent)[inline]

Sets the ascent.

Ascent()

Parameters

TInt aAscentThe ascent, in pixels.

SetBaselineCorrection(TInt)

IMPORT_C voidSetBaselineCorrection(TIntaBaselineCorrection)

WARNING: Function for internal and partner use ONLY. Compatibility is not guaranteed in future releases.

Parameters

TInt aBaselineCorrection

SetDescent(TInt)

voidSetDescent(TIntaDescent)[inline]

Sets the descent.

Descent()

Parameters

TInt aDescentThe descent, in pixels.

SetMaxDepth(TInt)

voidSetMaxDepth(TIntaMaxDepth)[inline]

Sets the font's maximum depth.

MaxDepth()

Parameters

TInt aMaxDepthThe font's maximum depth, in pixels.

SetMaxHeight(TInt)

voidSetMaxHeight(TIntaMaxHeight)[inline]

Sets the font's maximum height.

MaxHeight()

Parameters

TInt aMaxHeightThe font's maximum height, in pixels.

SetMaxWidth(TInt)

voidSetMaxWidth(TIntaMaxWidth)[inline]

Sets the maximum character width, in pixels.

MaxWidth()

Parameters

TInt aMaxWidthThe maximum character width, in pixels.

SetSize(TInt)

voidSetSize(TIntaSize)[inline]

Sets the font's size.

Size()

Parameters

TInt aSizeThe font's size.

Size()

TInt Size()const [inline]

Gets the font's size.

SetSize()

Member Data Documentation

TInt16 iAscent

TInt16 iAscent[private]

TInt16 iBaselineCorrection

TInt16 iBaselineCorrection[private]

TInt16 iDescent

TInt16 iDescent[private]

TInt16 iDesignHeight

TInt16 iDesignHeight[private]

TInt16 iMaxDepth

TInt16 iMaxDepth[private]

TInt16 iMaxHeight

TInt16 iMaxHeight[private]

TInt16 iMaxWidth

TInt16 iMaxWidth[private]

TInt16 iReserved

TInt16 iReserved[private]