|
| IMPORT_C | ~CTypefaceStore () |
| | Destroys the typeface store and reclaims the memory allocated to it.
|
| |
| virtual TInt | GetNearestFontInTwips (CFont *&aFont, const TFontSpec &aFontSpec)=0 |
| |
| virtual TInt | GetNearestFontToDesignHeightInTwips (CFont *&aFont, const TFontSpec &aFontSpec)=0 |
| |
| virtual TInt | GetNearestFontToMaxHeightInTwips (CFont *&aFont, const TFontSpec &aFontSpec, TInt aMaxHeight)=0 |
| |
| 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.
|
| |
| virtual TInt | FontHeightInTwips (TInt aTypefaceIndex, TInt aHeightIndex) const =0 |
| | Gets the height of the font with specified height and typeface indices, in twips.
|
| |
| IMPORT_C void | ReleaseFont (CFont *aFont) |
| | Releases the hold of a typeface store client on a specified font.
|
| |
| | CBase () |
| | Default constructor.
|
| |
| virtual IMPORT_C | ~CBase () |
| | Virtual destructor.
|
| |
| TAny * | operator new (TUint aSize, TAny *aBase) __NO_THROW |
| | Initialises the object to binary zeroes.
|
| |
| TAny * | operator new (TUint aSize) __NO_THROW |
| | Allocates the object from the heap and then initialises its contents to binary zeroes.
|
| |
| TAny * | operator new (TUint aSize, TLeave) |
| | Allocates the object from the heap and then initialises its contents to binary zeroes.
|
| |
| TAny * | operator new (TUint aSize, TUint aExtraSize) __NO_THROW |
| | Allocates the object from the heap and then initialises its contents to binary zeroes.
|
| |
| TAny * | operator new (TUint aSize, TLeave, TUint aExtraSize) |
| | Allocates the object from the heap and then initialises its contents to binary zeroes.
|
| |
Typeface store abstract base interface.
This class provides the interface to a store for typefaces.
See also CFontStore.
- API status
- Published to all clients. Released API.
Definition at line 864 of file gdi.h.
| IMPORT_C void CTypefaceStore::AddFontL |
( |
CFont * |
aFont | ) |
|
|
protected |
Adds a hold, by a client of the typeface store, on the specified font.
If the specified font is not currently accessed by any clients of the typeface store then the font is added to the font list and the access count set to 1. If it is currently accessed then the access count for the font is incremented by 1.
- Parameters
-
| aFont | Pointer to the device specific font accessed. |
(generated from Symbian Developer Library)
| static IMPORT_C TInt CTypefaceStore::BaselineOffset |
( |
TInt |
aHeight, |
|
|
TFontPrintPosition |
aPos |
|
) |
| |
|
static |
Gets the baseline offset, in twips, for any font in subscript or superscript form.
If the print position is normal then zero is returned. If it is superscript then the baseline offset returned is a percentage, KSuperscriptOffsetPercentage, of aHeight. If it is subscript then the baseline offset returned is a percentage, KSubscriptOffsetPercentage, of aHeight.
- Parameters
-
| aHeight | The height of a font. |
| aPos | The print position of the required font: superscript, subscript or normal. |
(generated from Symbian Developer Library)
| TInt CTypefaceStore::GetNearestFontInTwips |
( |
CFont *& |
aFont, |
|
|
const TFontSpec & |
aFontSpec |
|
) |
| |
|
pure virtual |
Gets the font which is the nearest to the given font specification.
When the font is no longer needed, call @c ReleaseFont().
Note that this deprecated function is replaced by the new @c GetNearestFontToDesignHeightInTwips()
yielding (virtually) the same result. However clients are strongly encouraged to use the new
@c GetNearestFontToMaxHeightInTwips() function instead. This will guarantee that every
character within any given text string will fit within the given amount of twips, whereas the design
height is an aesthetic unit decided by the font designer without strict physical meaning, which
may result in cropped characters.
@param aFont On return, contains a pointer to the nearest font.
@param aFontSpec The specification of the font to be matched.
@return KErrNone if successful; a system-wide error code otherwise.
@deprecated Use GetNearestFontToDesignHeightInTwips
- API status
- Published to all clients.
- Parameters
-
| aFont | On return, contains a pointer to the nearest font. |
| aFontSpec | The specification of the font to be matched. |
(generated from Symbian Developer Library)
| TInt CTypefaceStore::GetNearestFontToDesignHeightInTwips |
( |
CFont *& |
aFont, |
|
|
const TFontSpec & |
aFontSpec |
|
) |
| |
|
pure virtual |
Gets the font which is the nearest to the given font specification.
When the font is no longer needed, call @c ReleaseFont().
This new function replaces the deprecated @c GetNearestFontInTwips() yielding (virtually) the
same result. However clients are strongly encouraged to use the new
@c GetNearestFontToMaxHeightInTwips() function instead. This will guarantee that every
character within any given text string will fit within the given amount of twips, whereas the design
height is an aesthetic unit decided by the font designer without strict physical meaning, which
may result in cropped characters.
@param aFont On return, contains a pointer to the nearest font.
@param aFontSpec The specification of the font to be matched.
@return KErrNone if successful; a system-wide error code otherwise.
- API status
- Published to all clients. Released API.
- Parameters
-
| aFont | On return, contains a pointer to the nearest font. |
| aFontSpec | The specification of the font to be matched. |
(generated from Symbian Developer Library)
A list of fonts accessed by clients of the typeface store, which pairs a font with a count of the number of clients accessing the font.
Implemented as an array of TFontAccess objects.
An object is added to this array for every font accessed. If the font is released by all clients, and the access count drops to zero, the font is removed from the list.
Definition at line 996 of file gdi.h.