@@ -50,7 +50,7 @@ int main(void)
5050
5151 // Loading font data from memory data
5252 // Parameters > font size: 16, no glyphs array provided (0), glyphs count: 95 (autogenerate chars array)
53- fontDefault .glyphs = LoadFontData (fileData , fileSize , 16 , 0 , 95 , FONT_DEFAULT );
53+ fontDefault .glyphs = LoadFontData (fileData , fileSize , 16 , 0 , 95 , FONT_DEFAULT , & fontDefault . glyphCount );
5454 // Parameters > glyphs count: 95, font size: 16, glyphs padding in image: 4 px, pack method: 0 (default)
5555 Image atlas = GenImageFontAtlas (fontDefault .glyphs , & fontDefault .recs , 95 , 16 , 4 , 0 );
5656 fontDefault .texture = LoadTextureFromImage (atlas );
@@ -61,7 +61,8 @@ int main(void)
6161 fontSDF .baseSize = 16 ;
6262 fontSDF .glyphCount = 95 ;
6363 // Parameters > font size: 16, no glyphs array provided (0), glyphs count: 0 (defaults to 95)
64- fontSDF .glyphs = LoadFontData (fileData , fileSize , 16 , 0 , 0 , FONT_SDF );
64+ fontSDF .glyphs = LoadFontData (fileData , fileSize , 16 , 0 , 0 , FONT_SDF , &
65+ fontSDF .glyphCount );
6566 // Parameters > glyphs count: 95, font size: 16, glyphs padding in image: 0 px, pack method: 1 (Skyline algorythm)
6667 atlas = GenImageFontAtlas (fontSDF .glyphs , & fontSDF .recs , 95 , 16 , 0 , 1 );
6768 fontSDF .texture = LoadTextureFromImage (atlas );
0 commit comments