Update text.c
This commit is contained in:
parent
4e9afac2a5
commit
46ad7b87e8
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue