Construct

nn::font::PackedFont::Construct Member Function

Syntax

bool Construct(
     void * pBuffer,
     u32 bufferSize,
     const void * bfnt,
     const char * glyphGroups = LOAD_GLYPH_ALL
);

Parameters

Name Description
out pBuffer Pointer to the buffer associated with this instance. Must be aligned on a 128-byte boundary.
in bufferSize Size of the buffer pointed to by pBuffer.
in bfnt Pointer to a binary resource (BFNT) already loaded in memory.
in glyphGroups String specifying the glyph group to load.

Return Values

Returns true if the font is successfully constructed; otherwise, returns false. Fails if the archive font bfnt is invalid or if the buffer size is too small.

Description

Extracts the glyph group from the archive font and constructs a font.

Revision History

2010/11/10
Initial version.

CONFIDENTIAL