FNTConstruct

Syntax

#include <revolution/fnt.h>

BOOL FNTConstruct( FNTHeader* font, void* resource );

Arguments

font Pointer to the font data buffer.
The buffer must be of the size obtained by the function FNTGetDataSize.
Must be 32-byte aligned.
resource Pointer to the font resource data loaded into memory.
The entire font resource must be loaded.
Memory in which the font resource is loaded can be freed after this function completes execution.
Must be 32-byte aligned.

Return Values

TRUE if successfully completes; FALSE if font data is not available for use.

Description

Expands the font resource data loaded into memory.

Using the FNTInitStreamingConstruct and FNTStreamingConstruct functions as a pair instead of using the FNTConstruct function allows the font to be expanded without using memory equal in size to the font resource prior to expansion.

See Also

FNTGetDataSize, FNTInitStreamingConstruct, FNTStreamingConstruct

Revision History

2006/10/01 Initial version.


CONFIDENTIAL