|
@ -290,11 +290,12 @@ SpriteFont LoadSpriteFont(const char *fileName) |
|
|
|
|
|
|
|
|
#if defined(SUPPORT_FILEFORMAT_TTF) |
|
|
#if defined(SUPPORT_FILEFORMAT_TTF) |
|
|
if (IsFileExtension(fileName, ".ttf")) spriteFont = LoadSpriteFontEx(fileName, DEFAULT_TTF_FONTSIZE, 0, NULL); |
|
|
if (IsFileExtension(fileName, ".ttf")) spriteFont = LoadSpriteFontEx(fileName, DEFAULT_TTF_FONTSIZE, 0, NULL); |
|
|
|
|
|
else |
|
|
#endif |
|
|
#endif |
|
|
#if defined(SUPPORT_FILEFORMAT_FNT) |
|
|
#if defined(SUPPORT_FILEFORMAT_FNT) |
|
|
else if (IsFileExtension(fileName, ".fnt")) spriteFont = LoadBMFont(fileName); |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
if (IsFileExtension(fileName, ".fnt")) spriteFont = LoadBMFont(fileName); |
|
|
else |
|
|
else |
|
|
|
|
|
#endif |
|
|
{ |
|
|
{ |
|
|
Image image = LoadImage(fileName); |
|
|
Image image = LoadImage(fileName); |
|
|
if (image.data != NULL) spriteFont = LoadImageFont(image, MAGENTA, DEFAULT_FIRST_CHAR); |
|
|
if (image.data != NULL) spriteFont = LoadImageFont(image, MAGENTA, DEFAULT_FIRST_CHAR); |
|
|