font_create(char* content)
LC Creates a FONT object for Truetype or bitmap fonts at runtime.
Objects created this way are automatically deleted on closing the engine, or by calling the ptr_remove function.
Parameters:
content - the bitmap or Truetype font name, size and
flags, like "Arial #20bi" or "digits.bmp".
Returns:
Pointer to the FONT, or NULL if the creation
failed.
Speed:
slow
Remarks:
If no Truetype font with the given name is installed on the target system, a default font of roughly the same size is created instead.
Example:
my_font = font_create("myfont.pcx");
See also:
FONT,
ptr_remove
► latest
version online