aboutsummaryrefslogtreecommitdiff
path: root/src/text.c
diff options
context:
space:
mode:
authorRay San <raysan5@gmail.com>2017-11-02 20:08:52 +0100
committerRay San <raysan5@gmail.com>2017-11-02 20:08:52 +0100
commit3d755d617ab6f2a86c272ffb8ecddc2621269c19 (patch)
treea64566ad7970052f19eedf94cc8a7e93b3f5946b /src/text.c
parent415e7e972c920cbf3194c4dfbbfe402d7c4406c5 (diff)
downloadraylib-3d755d617ab6f2a86c272ffb8ecddc2621269c19.tar.gz
raylib-3d755d617ab6f2a86c272ffb8ecddc2621269c19.zip
Some code tweaks...
Diffstat (limited to 'src/text.c')
-rw-r--r--src/text.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/text.c b/src/text.c
index ff55ae6f..8db2fc9f 100644
--- a/src/text.c
+++ b/src/text.c
@@ -883,11 +883,10 @@ static SpriteFont LoadTTF(const char *fileName, int fontSize, int charsCount, in
scale = stbtt_ScaleForPixelHeight(&fontInfo, fontSize);
stbtt_GetFontVMetrics(&fontInfo, &ascent, 0, 0);
baseline = (int)(ascent*scale);
-
if (fontChars[0] != 32) TraceLog(LOG_WARNING, "TTF spritefont loading: first character is not SPACE(32) character");
- // NOTE: Using stb_truetype crappy packing method, no guarante the font fits the image...
+ // NOTE: Using stb_truetype crappy packing method, no guarantee the font fits the image...
// TODO: Replace this function by a proper packing method and support random chars order,
// we already receive a list (fontChars) with the ordered expected characters
int result = stbtt_BakeFontBitmap(ttfBuffer, 0, fontSize, dataBitmap, textureSize, textureSize, fontChars[0], charsCount, charData);