Added method to load TTF font from memory, added font loading base method to text module to support this.

This commit is contained in:
Scott Mudge 2020-04-17 12:09:08 -04:00
commit 4c0f359eb2

View file

@ -1207,6 +1207,7 @@ RLAPI int GetPixelDataSize(int width, int height, int format);
RLAPI Font GetFontDefault(void); // Get the default Font
RLAPI Font LoadFont(const char *fileName); // Load font from file into GPU memory (VRAM)
RLAPI Font LoadFontEx(const char *fileName, int fontSize, int *fontChars, int charsCount); // Load font from file with extended parameters
RLAPI Font LoadFontFromMemory(const char* data, int fontSize, int* fontChars, int charsCount);
RLAPI Font LoadFontFromImage(Image image, Color key, int firstChar); // Load font from Image (XNA style)
RLAPI CharInfo *LoadFontData(const char *fileName, int fontSize, int *fontChars, int charsCount, int type); // Load font data for further use
RLAPI Image GenImageFontAtlas(const CharInfo *chars, Rectangle **recs, int charsCount, int fontSize, int padding, int packMethod); // Generate image font atlas using chars info