FontLib::FindFont

FontLib::FindFont
virtual bool FindFont(FontResult * presult, const char* name, unsigned fontFlags, MovieDef* puserDef, StateBag * pstates, ResourceWeakLib* pweakLib = NULL);
Description

FindFont finds or creates a font of specified style by searching all of the registered MovieDef objects. The font resource is created to be compatible with MovieDef object's binding states and utilizes StateBag state for non-binding state values.

Parameters
Parameters 
Description 
FontResult * presult 
Pointer to the result which combines the font resource with the MovieDef object. 
const char* name 
Pointer to the font name. 
unsigned fontFlags 
The font style flag as described by Font::FontFlags. 
MovieDef* puserDef 
Pointer to the MovieDef object. 
StateBag * pstates 
Pointer to StateBag state for non-binding state values. 
ResourceWeakLib* pweakLib = NULL 
Pointer to the resource library. 
Return Value

A Boolean value of true if the font is found, and false otherwise.