Figure 1: Using the CGlyph class in an SDK application

// Declare pointer to main glyph object.
static CGlyph* pGlyph;
        .
        .
// Create glyph object (once only, at start).
pGlyph = new CGlyph();
        .
        .
// Realize 'B' (assumes font defined by 
// LOGFONT lf).
pGlyph->Realize('B', hDC, &lf);
        .
        .
// Draw the glyph with (100,100) as top left.
pGlyph->Draw(hDC, 100, 100);
        .
        .
// Delete glyph object (once only, at end).
delete pGlyph;