Browse Source

Update rtext.c

pull/4288/head
Ray 5 months ago
parent
commit
f5ef357810
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/rtext.c

+ 2
- 0
src/rtext.c View File

@ -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;

Loading…
Cancel
Save