diff options
| author | Ray <[email protected]> | 2019-10-11 20:13:11 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2019-10-11 20:13:11 +0200 |
| commit | 7baa2975ec616bf334fdc4858703896d41589385 (patch) | |
| tree | 9f0f32a261f0c62445e5f15a0ae5f247d1e26bfd /src/text.c | |
| parent | e0cb892d2d2d9d1c95f5f0622f1f8237ee843f45 (diff) | |
| download | raylib-7baa2975ec616bf334fdc4858703896d41589385.tar.gz raylib-7baa2975ec616bf334fdc4858703896d41589385.zip | |
REDESIGNED: IsFileExtension()
Now it accepts a ';' separated list of extensions, useful to check multiple extensions
Diffstat (limited to 'src/text.c')
| -rw-r--r-- | src/text.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -284,7 +284,7 @@ Font LoadFont(const char *fileName) Font font = { 0 }; #if defined(SUPPORT_FILEFORMAT_TTF) - if (IsFileExtension(fileName, ".ttf") || IsFileExtension(fileName, ".otf")) font = LoadFontEx(fileName, DEFAULT_TTF_FONTSIZE, NULL, DEFAULT_TTF_NUMCHARS); + if (IsFileExtension(fileName, ".ttf;.otf")) font = LoadFontEx(fileName, DEFAULT_TTF_FONTSIZE, NULL, DEFAULT_TTF_NUMCHARS); else #endif #if defined(SUPPORT_FILEFORMAT_FNT) |
