Browse Source

proper if-clauses for disabling functionality in text.c

pull/420/head
user 7 years ago
parent
commit
54587d7fdb
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      src/text.c

+ 3
- 2
src/text.c View File

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

Loading…
Cancel
Save