fontLoadRW
The fontLoad function allows you to load memory mapped files into FontLib.
Prototype
bool fontLoad(char* ImageData, char* WidthData, char* name1, char* name2);
Parameters
- ImageData
- a char* of a tga file
- WidthData
- the char* of byte image width data
- name1
- The name of font #1
- name2
- The name of font #2
Remarks
If you'd like to load files, use Load() instead. This is useful if you want to create a packed file format and send the images to Fontlib.
Error Codes
This function returns false if image failed to load. true if image was successful