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_C TOpenFontMetrics ( 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 TInt BaselineCorrection ( )

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)

void SetAscent ( TInt aAscent ) [inline]

Sets the ascent.

Ascent()

Parameters

TInt aAscent The ascent, in pixels.

SetBaselineCorrection(TInt)

IMPORT_C void SetBaselineCorrection ( TInt aBaselineCorrection )

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

Parameters

TInt aBaselineCorrection

SetDescent(TInt)

void SetDescent ( TInt aDescent ) [inline]

Sets the descent.

Descent()

Parameters

TInt aDescent The descent, in pixels.

SetMaxDepth(TInt)

void SetMaxDepth ( TInt aMaxDepth ) [inline]

Sets the font's maximum depth.

MaxDepth()

Parameters

TInt aMaxDepth The font's maximum depth, in pixels.

SetMaxHeight(TInt)

void SetMaxHeight ( TInt aMaxHeight ) [inline]

Sets the font's maximum height.

MaxHeight()

Parameters

TInt aMaxHeight The font's maximum height, in pixels.

SetMaxWidth(TInt)

void SetMaxWidth ( TInt aMaxWidth ) [inline]

Sets the maximum character width, in pixels.

MaxWidth()

Parameters

TInt aMaxWidth The maximum character width, in pixels.

SetSize(TInt)

void SetSize ( TInt aSize ) [inline]

Sets the font's size.

Size()

Parameters

TInt aSize The 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]