From 2116a987456e07c3d1ed4e7ef8be3e4864e229cc Mon Sep 17 00:00:00 2001 From: Ray Date: Mon, 3 Jan 2022 20:45:56 +0100 Subject: ADDED: `ExportFontAsCode()` --- src/raylib.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/raylib.h') diff --git a/src/raylib.h b/src/raylib.h index f1aef185..3805ba34 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -1325,7 +1325,9 @@ RLAPI Font LoadFontFromMemory(const char *fileType, const unsigned char *fileDat RLAPI GlyphInfo *LoadFontData(const unsigned char *fileData, int dataSize, int fontSize, int *fontChars, int glyphCount, int type); // Load font data for further use RLAPI Image GenImageFontAtlas(const GlyphInfo *chars, Rectangle **recs, int glyphCount, int fontSize, int padding, int packMethod); // Generate image font atlas using chars info RLAPI void UnloadFontData(GlyphInfo *chars, int glyphCount); // Unload font chars info data (RAM) -RLAPI void UnloadFont(Font font); // Unload Font from GPU memory (VRAM) +RLAPI void UnloadFont(Font font); // Unload font from GPU memory (VRAM) +RLAPI bool ExportFontAsCode(Font font, const char *fileName); // Export font as code file, returns true on success + // Text drawing functions RLAPI void DrawFPS(int posX, int posY); // Draw current FPS -- cgit v1.2.3