Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: openfont.h
Link against: fntstr.lib

Class COpenFontRasterizerContext

COpenFontRasterizerContext

Support

Supported from 5.0

Description

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.

Derivation

CBaseBase class for all classes to be instantiated on the heap
COpenFontRasterizerContextConvenience class from which rasterizer contexts may be derived

Defined in COpenFontRasterizerContext:
COpenFontRasterizerContext(), EndGlyph(), StartGlyph(), WriteGlyphBit()

Inherited from CBase:
operator new()


Construction and destruction


COpenFontRasterizerContext()

COpenFontRasterizerContext();

Description

Default C++ constructor.

[Top]


Member functions


EndGlyph()

void EndGlyph();

Description

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()

void StartGlyph(TOpenFontGlyphData* aGlyphData);

Description

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* aGlyphData

A pointer to the glyph data.


WriteGlyphBit()

void WriteGlyphBit(TInt aBit);

Description

Writes a bit to the glyph buffer.

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

Parameters

TInt aBit

The bit to be added to the buffer.