nw::font::ResFont::SetResource Member Function

Syntax

bool SetResource(
     void * bfnt
);

Arguments

Name Description
inout bfnt Pointer to bfnt to be associated with ResFont. Must be aligned on a 128-byte boundary.

Return Values

Returns TRUE if resource association succeeds; otherwise, returns FALSE.
The function fails if the bfnt resource is invalid.

Description

Enables the use of a font by associating the font resource.

The argument brfnt specifies a pointer to the start of the font resource file that has been loaded into memory. Because the associated font resource is used internally, you must not perform deallocation until the nw::font::ResFont::RemoveResource function is called.

This function rewrites the contents of the font resource pointed to by brfnt. When font resource that has already been rewritten is pass as brfnt, the font resource will only be associated.

See Also

nw::font::ResFont::RemoveResource

Revision History

2009/10/20
Initial version.

CONFIDENTIAL