Location: gdi.h
Link against: gdi.lib
CTypefaceStore
Supported from 5.0
Typeface store abstract base interface.
This class provides the interface of a store for typefaces.
|
Defined in CTypefaceStore
:
BaselineOffset()
, FontHeightInTwips()
, GetNearestFontInTwips()
, NumTypefaces()
, ReleaseFont()
, SuperSubHeight()
, TypefaceSupport()
, ~CTypefaceStore()
Inherited from CBase
:
operator new()
~CTypefaceStore();
Destructor.
This destroys the typeface store and reclaims the memory allocated to it.
virtual TInt GetNearestFontInTwips(CFont*& aFont,const TFontSpec& aFontSpec)=0;
Gets the bitmap font in the current graphics map which is nearest to the specified font specification.
|
|
void ReleaseFont(CFont* aFont);
Releases the client's hold on a specified font in the font store.
The font store keeps a list of fonts which it contains and, for each font, an access-count of the number of clients using that font. This function decrements the access-count for the specified font by one. If this reduces the access-count to zero then the font is no longer needed by any client, and is deleted from the typeface store.
|
virtual TInt NumTypefaces() const=0;
Gets the number of typefaces supported by the typeface store.
|
virtual void TypefaceSupport(TTypefaceSupport& aTypefaceSupport,TInt aTypefaceIndex) const=0;
Gets typeface information for a specified typeface index.
This information is returned in aTypefaceSupport
, and includes the typeface name and typeface attributes, the number of font heights, the maximum and minimum font heights, and whether it is a scaleable typeface.
|
virtual TInt FontHeightInTwips(TInt aTypefaceIndex,TInt aHeightIndex) const=0;
Gets the height of the font with specified height and typeface indices, in twips.
The value returned is rounded up or down to the nearest font height in twips.
|
|
static TInt BaselineOffset(TInt aHeight,TFontPrintPosition aPos);
Gets the baseline offset for a superscript or subscript font, in twips.
The baseline offset is obtained from the height of the current font and the print position of the required font.
|
|
static TInt SuperSubHeight(TInt aHeight,TFontPrintPosition aPos);
Gets the height for a superscript or subscript font.
The height is obtained from the height of the current font.
|
|