COpenFontRasterizerContext Class Reference

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.

Inherits from

  • COpenFontRasterizerContext

Constructor & Destructor Documentation

COpenFontRasterizerContext()

COpenFontRasterizerContext()[inline]

Default C++ constructor.

Member Functions Documentation

EndGlyph()

voidEndGlyph()[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().

StartGlyph(TOpenFontGlyphData *)

voidStartGlyph(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.

Parameters

TOpenFontGlyphData * aGlyphDataA pointer to the glyph data.

WriteGlyphBit(TInt)

voidWriteGlyphBit(TIntaBit)[inline]

Writes a bit to the glyph buffer.

Before calling this function you should first call StartGlyph().

Parameters

TInt aBitThe bit to be added to the buffer.

WriteGlyphByte(TInt)

voidWriteGlyphByte(TIntaByte)[inline]

Writes a byte to the glyph buffer.

Before calling this function you should first call StartGlyph().

Parameters

TInt aByteThe byte to be added to the buffer.

Member Data Documentation

TInt iBytesNeeded

TInt iBytesNeeded[private]

TInt iGlyphBit

TInt iGlyphBit[private]

TOpenFontGlyphData * iGlyphData

TOpenFontGlyphData *iGlyphData[private]

TUint8 * iGlyphDataEnd

TUint8 *iGlyphDataEnd[private]

TUint8 * iGlyphDataPtr

TUint8 *iGlyphDataPtr[private]

TUint8 * iGlyphDataStart

TUint8 *iGlyphDataStart[private]

TBool iOverflow

TBool iOverflow[private]

TAny * iReserved

TAny *iReserved[private]