Browse Source

REVIEWED: [rtext] Provide more detailed info on glyphs failing to pack #5141

pull/5143/head
Ray 1 month ago
parent
commit
52980c947d
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/rtext.c

+ 2
- 2
src/rtext.c View File

@ -850,7 +850,7 @@ Image GenImageFontAtlas(const GlyphInfo *glyphs, Rectangle **glyphRecs, int glyp
{ {
for (int j = i + 1; j < glyphCount; j++) for (int j = i + 1; j < glyphCount; j++)
{ {
TRACELOG(LOG_WARNING, "FONT: Failed to package character (%i)", j);
TRACELOG(LOG_WARNING, "FONT: Failed to package character (0x%02x)", glyphs[j].value);
// Make sure remaining recs contain valid data // Make sure remaining recs contain valid data
recs[j].x = 0; recs[j].x = 0;
recs[j].y = 0; recs[j].y = 0;
@ -918,7 +918,7 @@ Image GenImageFontAtlas(const GlyphInfo *glyphs, Rectangle **glyphRecs, int glyp
} }
} }
} }
else TRACELOG(LOG_WARNING, "FONT: Failed to package character (%i)", i);
else TRACELOG(LOG_WARNING, "FONT: Failed to package character (0x%02x)", glyphs[i].value);
} }
RL_FREE(rects); RL_FREE(rects);

Loading…
Cancel
Save