| class COpenFontRasterizerContext : public CBase |
Convenience class from which rasterizer contexts may be derived.
A rasterizer context object may (optionally) be created to provide the link between the rasterizer DLL code supported by the Open Font System, and the rasterizer engine code. A rasterizer context object class should get the requested bitmap from the associated rasterizer engine. It should then convert this into Symbian run-length-encoded format. This class contains convenience functions to make the conversion easier.
Deriving from this class is described in greater detail in the API guide.
| Public Member Functions | |
|---|---|
| COpenFontRasterizerContext () | |
| void | EndGlyph () |
| void | StartGlyph ( TOpenFontGlyphData *) |
| void | WriteGlyphBit ( TInt ) |
| void | WriteGlyphByte ( TInt ) |
| Private Attributes | |
|---|---|
| TInt | iBytesNeeded |
| TInt | iGlyphBit |
| TOpenFontGlyphData * | iGlyphData |
| TUint8 * | iGlyphDataEnd |
| TUint8 * | iGlyphDataPtr |
| TUint8 * | iGlyphDataStart |
| TBool | iOverflow |
| TAny * | iReserved |
| void | EndGlyph | ( | ) | [inline] |
Completes writing glyph data.
Use this function to complete writing the glyph bitmap to the buffer. Call it after adding all necessary bits using WriteGlyphBit() .
| void | StartGlyph | ( | TOpenFontGlyphData * | aGlyphData | ) | [inline] |
Start writing the glyph data.
Use this function to initialise the buffer to which the glyph bitmap is to be written. Call WriteGlyphBit() to add bits to the buffer.
| TOpenFontGlyphData * aGlyphData | A pointer to the glyph data. |
| void | WriteGlyphBit | ( | TInt | aBit | ) | [inline] |
| TInt aBit | The bit to be added to the buffer. |
| void | WriteGlyphByte | ( | TInt | aByte | ) | [inline] |
Writes a byte to the glyph buffer.
Before calling this function you should first call StartGlyph() .
| TInt aByte | The byte to be added to the buffer. |
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.