mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-08 10:56:28 +00:00
Update text.c
This commit is contained in:
@@ -550,7 +550,7 @@ CharInfo *LoadFontData(const unsigned char *fileData, int dataSize, int fontSize
|
|||||||
int genFontChars = false;
|
int genFontChars = false;
|
||||||
stbtt_fontinfo fontInfo = { 0 };
|
stbtt_fontinfo fontInfo = { 0 };
|
||||||
|
|
||||||
if (stbtt_InitFont(&fontInfo, (unsigned char *)fileData, 0)) // Init font for data reading
|
if (stbtt_InitFont(&fontInfo, (unsigned char *)fileData, 0)) // Initialize font for data reading
|
||||||
{
|
{
|
||||||
// Calculate font scale factor
|
// Calculate font scale factor
|
||||||
float scaleFactor = stbtt_ScaleForPixelHeight(&fontInfo, (float)fontSize);
|
float scaleFactor = stbtt_ScaleForPixelHeight(&fontInfo, (float)fontSize);
|
||||||
|
Reference in New Issue
Block a user