FNTGetDataSize

Syntax

#include <revolution/fnt.h>

u32 FNTGetDataSize( void* resource );

Arguments

resource Pointer to the start of font resource data loaded into memory.
If font resources are expanded while being loaded successively into memory, at least the first FNT_RESOURCE_HEADER_SIZE (= 16 KB) worth of data must be loaded.
Must be 32-byte aligned.

Return Values

If execution ends normally, this function returns the size of the font data buffer required to use the font. Returns 0 if the font data cannot be used.

Description

Gets the font data buffer size required to use the font.

The buffer size required to use a font is the same when using FNTConstruct() as it is when using the combination FNTInitStreamingConstruct() and FNTStreamingConstruct().

See Also

FNTConstruct, FNTInitStreamingConstruct, FNTStreamingConstruct

Revision History

2006/10/01 Initial version.


CONFIDENTIAL