Location: openfont.h
Link against: fntstr.lib
TOpenFontMetrics
Supported from 5.0
Font metrics.
Defined in TOpenFontMetrics
:
Ascent()
, Descent()
, MaxDepth()
, MaxHeight()
, MaxWidth()
, SetAscent()
, SetDescent()
, SetMaxDepth()
, SetMaxHeight()
, SetMaxWidth()
, SetSize()
, Size()
, TOpenFontMetrics()
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.
|
TInt Ascent() const;
Gets the font's ascent.
Note:
The ascent is usually the height of a Latin capital letter above the baseline.
|
TInt Descent() const;
Gets the font's descent.
Note:
The descent is usually the depth of a Latin lowercase 'p', 'q', or 'y' below the baseline.
|
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.
|
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.
Note:
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.
|
TInt MaxWidth() const;
Gets the maximum character width, in pixels.
|
void SetAscent(TInt aAscent);
Sets the ascent.
|
void SetDescent(TInt aDescent);
Sets the descent.
|
void SetMaxDepth(TInt aMaxDepth);
Sets the font's maximum depth.
|
void SetMaxHeight(TInt aMaxHeight);
Sets the font's maximum height.
|
void SetMaxWidth(TInt aMaxWidth);
Sets the maximum character width, in pixels.
|
void SetSize(TInt aSize);
Sets the font's size.
|
TInt Size() const;
Gets the font's size.
|