Location:
OPENFONT.H
Link against: fntstr.lib
class TOpenFontMetrics;
Font metrics.
Defined in TOpenFontMetrics
:
Ascent()
, Descent()
, MaxDepth()
, MaxHeight()
, MaxWidth()
, SetAscent()
, SetDescent()
, SetMaxDepth()
, SetMaxHeight()
, SetMaxWidth()
, SetSize()
, Size()
, TOpenFontMetrics()
, TOpenFontMetrics()
inline TOpenFontMetrics();
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.
|
inline TInt Size() const;
Gets the font's size.
|
inline TInt Ascent() const;
Gets the font's ascent.
This is the ascent for the Latin character which is highest above the baseline.
|
inline TInt Descent() const;
Gets the font's descent.
This is the descent for the Latin character in the font which falls furthest below the baseline.
|
inline TInt MaxHeight() const;
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.
|
inline TInt MaxDepth() const;
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.
|
inline TInt MaxWidth() const;
Gets the maximum character width, in pixels.
|
inline void SetSize(TInt aSize);
Sets the font's size.
|
inline void SetAscent(TInt aAscent);
Sets the ascent.
|
inline void SetDescent(TInt aDescent);
Sets the descent.
|
inline void SetMaxHeight(TInt aMaxHeight);
Sets the font's maximum height.
|
inline void SetMaxDepth(TInt aMaxDepth);
Sets the font's maximum depth.
|
inline void SetMaxWidth(TInt aMaxWidth);
Sets the maximum character width, in pixels.
|