Skip to content

Commit

Permalink
Update rtext.c
Browse files Browse the repository at this point in the history
  • Loading branch information
raysan5 committed Aug 25, 2024
1 parent 5604f6d commit f5ef357
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rtext.c
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,8 @@ GlyphInfo *LoadFontData(const unsigned char *fileData, int dataSize, int fontSiz
{
stbtt_GetCodepointHMetrics(&fontInfo, ch, &chars[i].advanceX, NULL);
chars[i].advanceX = (int)((float)chars[i].advanceX*scaleFactor);

if (chh > fontSize) TRACELOG(LOG_WARNING, "FONT: Character [0x%08x] size is bigger than expected font size", ch);

// Load characters images
chars[i].image.width = chw;
Expand Down

0 comments on commit f5ef357

Please sign in to comment.