aboutsummaryrefslogtreecommitdiff
path: root/src/text.c
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2015-08-28 14:14:29 +0200
committerraysan5 <raysan5@gmail.com>2015-08-28 14:14:29 +0200
commitc52ba520cec3c9d3fdf7cb1f70da95e9396c59a9 (patch)
treed3b6d5d422a9b2bbb40711690d2fb39e51e2592f /src/text.c
parent322ca97c24f214d665cad512a70a696b489ecb52 (diff)
downloadraylib-c52ba520cec3c9d3fdf7cb1f70da95e9396c59a9.tar.gz
raylib-c52ba520cec3c9d3fdf7cb1f70da95e9396c59a9.zip
Small tweaks
Diffstat (limited to 'src/text.c')
-rw-r--r--src/text.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/text.c b/src/text.c
index 65d52f26..3d866c86 100644
--- a/src/text.c
+++ b/src/text.c
@@ -614,8 +614,14 @@ static SpriteFont LoadRBMF(const char *fileName)
}
// Generate a sprite font from TTF data (font size required)
+// NOTE: This function is a mess, it should be completely redone!
static SpriteFont LoadTTF(const char *fileName, int fontSize)
{
+ // Steps:
+
+ // 1) Generate sprite sheet image with characters from TTF
+ // 2) Load image as SpriteFont
+
SpriteFont font;
Image image;
@@ -631,7 +637,7 @@ static SpriteFont LoadTTF(const char *fileName, int fontSize)
unsigned char *tempBitmap = (unsigned char *)malloc(image.width*image.height*sizeof(unsigned char)); // One channel bitmap returned!
- // REFERENCE
+ // Reference struct
/*
typedef struct
{