From a6e31cadbd448fc7ae26ac60b151417ce759ad50 Mon Sep 17 00:00:00 2001 From: The Tophat Demon <38636401+TheTophatDemon@users.noreply.github.com> Date: Thu, 16 Jun 2022 17:12:21 -0500 Subject: [PATCH] Changed ExportFontAsCode to use given font's padding. (#2525) --- src/rtext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rtext.c b/src/rtext.c index 4134455ba..b9dc5e9d6 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");