diff options
| author | Ray <[email protected]> | 2020-09-13 16:42:31 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2020-09-13 16:42:31 +0200 |
| commit | db652daf42971ae737bebe51947dc31f15046bdc (patch) | |
| tree | 7b9dc668ac7e405c13efb3999b6a22b0be414b8c /src/raylib.h | |
| parent | 88c5deac8777ed9176de344cd09672618ec99070 (diff) | |
| download | raylib-db652daf42971ae737bebe51947dc31f15046bdc.tar.gz raylib-db652daf42971ae737bebe51947dc31f15046bdc.zip | |
ADDED: LoadFontFromMemory() (TTF only) #1327
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/raylib.h b/src/raylib.h index 867061ec..9c82ef9d 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -1222,8 +1222,9 @@ RLAPI Font GetFontDefault(void); 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 LoadFontFromImage(Image image, Color key, int firstChar); // Load font from Image (XNA style) -RLAPI Image GenImageFontAtlas(const CharInfo *chars, Rectangle **recs, int charsCount, int fontSize, int padding, int packMethod); // Generate image font atlas using chars info +RLAPI Font LoadFontFromMemory(const char *fileType, const char *fileData, int dataSize, int fontSize, int *fontChars, int charsCount); // Load font from memory buffer, fileType refers to extension: i.e. "ttf" RLAPI CharInfo *LoadFontData(const char *fileData, int dataSize, 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 RLAPI void UnloadFont(Font font); // Unload Font from GPU memory (VRAM) // Text drawing functions |
