Name
CreateVectorFont -- create a vector font (V5.0)
Synopsis
APTR handle = CreateVectorFont(FT_Face face);
Function
This function has to create a vector font from the FT_Face passed to this function. FT_Face is a data type for describing font handles allocated by the FreeType2 library which Hollywood uses to render text. CreateVectorFont() has to return a handle which is then passed in the CCMD_TEXT path command whenever Hollywood wants you to draw some vector text. See DrawPath for details.

Hollywood will call FreeVectorFont() to free handles allocated by this function.

Inputs
face
pointer to an FT_Face describing a FreeType2 font
Results
handle
handle to a vector font to be used with DrawPath() or NULL in case of an error

Show TOC