#include <openfont.h>
class TOpenFontGlyphData |
Public Member Functions | |
---|---|
TPtrC8 | Bitmap() |
const TUint8 * | BitmapPointer() |
TUint8 * | BufferEnd() |
TUint8 * | BufferStart() |
TInt | BytesNeeded() |
TInt | GlyphIndex() |
const TOpenFontCharMetrics * | Metrics() |
IMPORT_C TOpenFontGlyphData * | New(RHeap *, TInt) |
TBool | Overflow() |
void | SetBitmapPointer(const TUint8 *) |
void | SetBytesNeeded(TInt) |
void | SetGlyphIndex(TInt) |
void | SetMetrics(TOpenFontCharMetrics &) |
void | SetMetricsPointer(const TOpenFontCharMetrics *) |
void | SetPointersToInternalBuffers() |
Font glyph data.
Objects of this type are used by rasterizers to supply glyph data to font and bitmap server clients. Unless you are writing a rasterizer you will not need to use an object of this type.
The object cannot be constructed and destroyed by normal means. It resides on a specified heap. It is created by New() and deleted by RHeap::Free().
See also: COpenFont::RasterizeL()
TPtrC8 | Bitmap | ( | ) | const [inline] |
Gets a constant pointer descriptor containing the bitmap this object represents.
Returns: Pointer descriptor for the glyph.
const TUint8 * | BitmapPointer | ( | ) | const [inline] |
Gets a pointer to the bitmap.
This points either to the buffer used to write the bitmap when it is first rasterized, or to the cache if the character was already rasterized.
Returns: A pointer to the bitmap.
TUint8 * | BufferEnd | ( | ) | [inline] |
Gets a pointer to the end of the bitmap buffer.
Returns: A pointer to the end of the bitmap buffer.
TUint8 * | BufferStart | ( | ) | [inline] |
Gets a pointer to the start of the bitmap buffer.
Returns: A pointer to the start of the bitmap buffer.
TInt | BytesNeeded | ( | ) | const [inline] |
Gets the number of bytes needed to store the glyph bitmap.
See also: SetBytesNeeded()
Returns: The number of bytes needed to store the glyph bitmap.
TInt | GlyphIndex | ( | ) | const [inline] |
Gets the glyph index.
This is the index of a particular glyph within the font file.
Note: This makes it possible to gain access to glyphs which are not referenced by the Unicode character set. However, this feature is not yet supported by Symbian OS.
See also: SetGlyphIndex()
Returns: The glyph index.
const TOpenFontCharMetrics * | Metrics | ( | ) | const [inline] |
Gets the character's metrics.
Returns: The character's open font metrics.
TBool | Overflow | ( | ) | const [inline] |
Tests whether the bitmap buffer is large enough to hold the bitmap.
Returns: ETrue if the bitmap will overflow its buffer, otherwise EFalse.
void | SetBitmapPointer | ( | const TUint8 * | aBitmap | ) | [inline] |
Sets the pointer to the bitmap buffer.
Parameter | Description |
---|---|
aBitmap | The pointer to the bitmap buffer. |
void | SetBytesNeeded | ( | TInt | aBytes | ) | [inline] |
Sets the number of bytes needed to store the glyph bitmap.
See also: BytesNeeded()
Parameter | Description |
---|---|
aBytes | The number of bytes needed to store the glyph bitmap. |
void | SetGlyphIndex | ( | TInt | aGlyphIndex | ) | [inline] |
Sets the glyph index.
Parameter | Description |
---|---|
aGlyphIndex | The glyph index. |
void | SetMetrics | ( | TOpenFontCharMetrics & | aMetrics | ) | [inline] |
Sets the character's metrics, passing a reference to a TOpenFontCharMetrics object.
Parameter | Description |
---|---|
aMetrics | The character's open font character metrics. |
void | SetMetricsPointer | ( | const TOpenFontCharMetrics * | aMetrics | ) | [inline] |
Sets the character's metrics, passing a pointer to a TOpenFontCharMetrics object.
Parameter | Description |
---|---|
aMetrics | A pointer to the character's open font character metrics. |