nw::font::PackedFont::GetGlyph Member Function

Syntax

virtual void GetGlyph(
     Glyph * glyph,
     CharCode c
) const;

Arguments

Name Description
out glyph Pointer to the buffer that receives the glyph data.
in c Character code of the character for which the glyph data was retrieved.

Return Values

None.

Description

Gets glyph data.

With the PackedFont class, sheets in the font resource are maintained in a compressed state. They are expanded and cached when they are requested with the GetGlyph function. When it is necessary to cache a sheet after the cache reaches capacity, the last used sheet is deleted from the cache.
The glyphs obtained with the GetGlyph function are not always valid, given this mechanism. The glyphs obtained with the GetGlyph function are guaranteed to be valid only until the next call to the GetGlyph function or until a cache management member function is called.

See Also

nw::font::PackedFont::PreloadSheet
nw::font::PackedFont::LockSheet
nw::font::PackedFont::UnlockSheet
nw::font::PackedFont::UnlockSheetAll

Revision History

2009/11/09
Initial version.

CONFIDENTIAL