summaryrefslogtreecommitdiffhomepage
path: root/src/rtext.c
diff options
context:
space:
mode:
authorThe Tophat Demon <[email protected]>2022-06-16 17:12:21 -0500
committerGitHub <[email protected]>2022-06-17 00:12:21 +0200
commita6e31cadbd448fc7ae26ac60b151417ce759ad50 (patch)
treea2e16e97d0cf67bdefda533ee7e09c41a1b0d8aa /src/rtext.c
parent09643530738aca2674029b3d045b9492dc9bf86c (diff)
downloadraylib-a6e31cadbd448fc7ae26ac60b151417ce759ad50.tar.gz
raylib-a6e31cadbd448fc7ae26ac60b151417ce759ad50.zip
Changed ExportFontAsCode to use given font's padding. (#2525)
Diffstat (limited to 'src/rtext.c')
-rw-r--r--src/rtext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rtext.c b/src/rtext.c
index 4134455b..b9dc5e9d 100644
--- a/src/rtext.c
+++ b/src/rtext.c
@@ -939,7 +939,7 @@ bool ExportFontAsCode(Font font, const char *fileName)
byteCount += sprintf(txtData + byteCount, " Font font = { 0 };\n\n");
byteCount += sprintf(txtData + byteCount, " font.baseSize = %i;\n", font.baseSize);
byteCount += sprintf(txtData + byteCount, " font.glyphCount = %i;\n", font.glyphCount);
- byteCount += sprintf(txtData + byteCount, " font.glyphPadding = %i;\n\n", FONT_TTF_DEFAULT_CHARS_PADDING);
+ byteCount += sprintf(txtData + byteCount, " font.glyphPadding = %i;\n\n", font.glyphPadding);
byteCount += sprintf(txtData + byteCount, " // Custom font loading\n");
#if defined(SUPPORT_COMPRESSED_FONT_ATLAS)
byteCount += sprintf(txtData + byteCount, " // NOTE: Compressed font image data (DEFLATE), it requires DecompressData() function\n");