class TOpenFontMetrics |
Font metrics.
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() |
Private Attributes | |
---|---|
TInt16 | iAscent |
TInt16 | iBaselineCorrection |
TInt16 | iDescent |
TInt16 | iDesignHeight |
TInt16 | iMaxDepth |
TInt16 | iMaxHeight |
TInt16 | iMaxWidth |
TInt16 | iReserved |
TOpenFontMetrics | ( | ) | [inline] |
Default C++ constructor.
This creates then zero fills the object.
IMPORT_C | TOpenFontMetrics | ( | const CFont * | aFont | ) |
const CFont * aFont |
TInt | Ascent | ( | ) | const [inline] |
Gets the font's ascent.
This is the ascent for the Latin character which is highest above the baseline.
The font's ascent, in pixels.
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.
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.
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.
The maximum height of the font, in pixels.
void | SetAscent | ( | TInt | aAscent | ) | [inline] |
Sets the ascent.
TInt aAscent | The ascent, in pixels. |
IMPORT_C void | SetBaselineCorrection | ( | TInt | aBaselineCorrection | ) |
WARNING: Function for internal and partner use ONLY. Compatibility is not guaranteed in future releases.
TInt aBaselineCorrection |
void | SetDescent | ( | TInt | aDescent | ) | [inline] |
Sets the descent.
TInt aDescent | The descent, in pixels. |
void | SetMaxDepth | ( | TInt | aMaxDepth | ) | [inline] |
Sets the font's maximum depth.
TInt aMaxDepth | The font's maximum depth, in pixels. |
void | SetMaxHeight | ( | TInt | aMaxHeight | ) | [inline] |
Sets the font's maximum height.
TInt aMaxHeight | The font's maximum height, in pixels. |
void | SetMaxWidth | ( | TInt | aMaxWidth | ) | [inline] |
Sets the maximum character width, in pixels.
TInt aMaxWidth | The maximum character width, in pixels. |
void | SetSize | ( | TInt | aSize | ) | [inline] |
Sets the font's size.
TInt aSize | The font's size. |