nn::font::PackedFont::GetRequireBufferSize Member Function

Syntax

static u32 GetRequireBufferSize(
     const void * bfnt,
     int numSheetCache
);

Arguments

Name Description
in bfnt Pointer to the first part of a binary resource (BFNT) loaded into memory.
in numSheetCache Maximum number of cached expanded sheets.

Return Values

Returns the buffer size required for constructing a font with the Construct or InitStreamingConstruct function. Returns 0 if the buffer size could not be calculated for some reason, such as when bfnt is an invalid resource.

Description

Calculates the buffer size required to construct the font.


CONFIDENTIAL