From b48d225a43c2a08bf1e37b1f66ec09cf0795371c Mon Sep 17 00:00:00 2001 From: raysan5 Date: Sun, 10 Jun 2018 19:29:01 +0200 Subject: [PATCH] Propose new function: GenImageFont() --- src/textures.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/textures.c b/src/textures.c index c7bd7648..789da14c 100644 --- a/src/textures.c +++ b/src/textures.c @@ -1979,6 +1979,15 @@ Image GenImageCellular(int width, int height, int tileSize) return image; } + +// Generate image: font atlas. Requires TTF as input file. +// NOTE: Generated atlas packs characters in order and rectangles are defined with magenta borders (?) +Image GenImageFont(const char *fileName, int fontSize, int charsCount, int *fontChars, CharInfo *chars) +{ + CharInfo *chars; // Characters info (if required) + + // TODO. +} #endif // SUPPORT_IMAGE_GENERATION // Generate GPU mipmaps for a texture