Added method to load TTF font from memory, added font loading base method to text module to support this.
This commit is contained in:
parent
00b3199859
commit
4c0f359eb2
1 changed files with 49 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue