summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorSkabunkel <>2019-02-24 01:56:17 +0100
committerSkabunkel <>2019-02-24 01:56:17 +0100
commit03f74835378a26c226ce3c45afae48c7488b8682 (patch)
tree91440790e772e355525f553580e11efe71e9b296 /src
parentf2d5cddfc8076fb3a0e9618bbd0c51a40b2b0922 (diff)
downloadraylib-03f74835378a26c226ce3c45afae48c7488b8682.tar.gz
raylib-03f74835378a26c226ce3c45afae48c7488b8682.zip
Missed one
Diffstat (limited to 'src')
-rw-r--r--src/text.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/text.c b/src/text.c
index db8875b4..dc2b07ab 100644
--- a/src/text.c
+++ b/src/text.c
@@ -512,6 +512,7 @@ CharInfo *LoadFontData(const char *fileName, int fontSize, int *fontChars, int c
if (type != FONT_SDF) chars[i].data = stbtt_GetCodepointBitmap(&fontInfo, scaleFactor, scaleFactor, ch, &chw, &chh, &chars[i].offsetX, &chars[i].offsetY);
else if (ch != 32) chars[i].data = stbtt_GetCodepointSDF(&fontInfo, scaleFactor, ch, SDF_CHAR_PADDING, SDF_ON_EDGE_VALUE, SDF_PIXEL_DIST_SCALE, &chw, &chh, &chars[i].offsetX, &chars[i].offsetY);
+ else chars[i].data = NULL;
if (type == FONT_BITMAP)
{