TOpenFontGlyphData Class Reference
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().
COpenFont::RasterizeL()
Constructor & Destructor Documentation
TOpenFontGlyphData()
TOpenFontGlyphData | ( | ) | [private] |
~TOpenFontGlyphData()
~TOpenFontGlyphData | ( | ) | [private] |
Member Functions Documentation
Bitmap()
Gets a constant pointer descriptor containing the bitmap this object represents.
BitmapPointer()
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.
BufferEnd()
Gets a pointer to the end of the bitmap buffer.
BufferStart()
Gets a pointer to the start of the bitmap buffer.
BytesNeeded()
TInt
| BytesNeeded | ( | ) | const [inline] |
GlyphIndex()
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.
SetGlyphIndex()
Metrics()
Gets the character's metrics.
Overflow()
TBool
| Overflow | ( | ) | const [inline] |
Tests whether the bitmap buffer is large enough to hold the bitmap.
SetBitmapPointer(const TUint8 *)
void | SetBitmapPointer | ( | const TUint8 * | aBitmap | ) | [inline] |
Sets the pointer to the bitmap buffer.
Parameters
const TUint8 * aBitmap | The pointer to the bitmap buffer. |
SetBytesNeeded(TInt)
void | SetBytesNeeded | ( | TInt | aBytes | ) | [inline] |
Sets the number of bytes needed to store the glyph bitmap.
BytesNeeded()
Parameters
TInt aBytes | The number of bytes needed to store the glyph bitmap. |
SetGlyphIndex(TInt)
void | SetGlyphIndex | ( | TInt | aGlyphIndex | ) | [inline] |
Parameters
TInt aGlyphIndex | The glyph index. |
SetMetrics(TOpenFontCharMetrics &)
SetMetricsPointer(const TOpenFontCharMetrics *)
SetPointersToInternalBuffers()
void | SetPointersToInternalBuffers | ( | ) | [inline] |
Sets the bitmap and metrics pointers to point to the internal buffers.
The alternative is that the pointers point to the cache of metrics and bitmaps that have already been rasterized.
Member Data Documentation
const TUint8 * iBitmap
const TUint8 * | iBitmap | [private] |
TInt
iBitmapBufferSize
TInt
| iBitmapBufferSize | [private] |
TInt
iBytesNeeded
TInt
| iBytesNeeded | [private] |
TInt
iGlyphIndex
TInt
| iGlyphIndex | [private] |
const TOpenFontCharMetrics * iMetrics
TOpenFontCharMetrics
iMetricsBuffer
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.