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