#include <openfont.h>
class TOpenFontMetrics |
Public Member Functions | |
---|---|
TOpenFontMetrics() | |
TOpenFontMetrics(const CFont *) | |
TInt | Ascent() |
IMPORT_C TInt | BaselineCorrection() |
TInt | Descent() |
TInt | MaxDepth() |
TInt | MaxHeight() |
TInt | MaxWidth() |
void | SetAscent(TInt) |
IMPORT_C void | SetBaselineCorrection(TInt) |
void | SetDescent(TInt) |
void | SetMaxDepth(TInt) |
void | SetMaxHeight(TInt) |
void | SetMaxWidth(TInt) |
void | SetSize(TInt) |
TInt | Size() |
TOpenFontMetrics | ( | ) | [inline] |
Default C++ constructor.
This creates then zero fills the object.
IMPORT_C | TOpenFontMetrics | ( | const CFont * | aFont | ) |
C++ constructor with a CFont parameter.
This creates a TOpenFontMetrics and initialises it with size, ascent, maximum height, descent, maximum depth and maximum character width information from the CFont that was passed as a parameter.
Parameter | Description |
---|---|
aFont | The font from which to initialise the metrics object. |
TInt | Ascent | ( | ) | const [inline] |
Gets the font's ascent.
This is the ascent for the Latin character which is highest above the baseline.
See also: SetAscent()
Returns: The font's ascent, in pixels.
IMPORT_C TInt | BaselineCorrection | ( | ) |
Gets the baseline correction applied to this font; this value is used to offset the underlinke and strikethrough positions and is used by linked fonts only.
Returns: The baseline correction associated with this font
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.
See also: SetDescent()
Returns: The font's descent, in pixels.
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.
See also: SetMaxDepth()
Returns: The font's maximum depth.
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.
See also: SetMaxDepth()
Returns: The maximum height of the font, in pixels.
TInt | MaxWidth | ( | ) | const [inline] |
Gets the maximum character width, in pixels.
See also: SetMaxWidth()
Returns: The maximum character width, in pixels.
IMPORT_C void | SetBaselineCorrection | ( | TInt | aBaselineCorrection | ) |
WARNING: Function for internal and partner use ONLY. Compatibility is not guaranteed in future releases.
void | SetMaxDepth | ( | TInt | aMaxDepth | ) | [inline] |
Sets the font's maximum depth.
See also: MaxDepth()
Parameter | Description |
---|---|
aMaxDepth | The font's maximum depth, in pixels. |
void | SetMaxHeight | ( | TInt | aMaxHeight | ) | [inline] |
Sets the font's maximum height.
See also: MaxHeight()
Parameter | Description |
---|---|
aMaxHeight | The font's maximum height, in pixels. |
void | SetMaxWidth | ( | TInt | aMaxWidth | ) | [inline] |
Sets the maximum character width, in pixels.
See also: MaxWidth()
Parameter | Description |
---|---|
aMaxWidth | The maximum character width, in pixels. |