nw::font::ResFont::SetResource Member Function
bool SetResource(
void * bfnt
);
| Name | Description | |
|---|---|---|
| inout | bfnt | Pointer to bfnt to be associated with ResFont. Must be aligned on a 128-byte boundary. |
bfnt resource is invalid. 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.
CONFIDENTIAL