diff options
| author | Ray <[email protected]> | 2018-12-10 00:29:52 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2018-12-10 00:29:52 +0100 |
| commit | 7361ed24e26b964709ca80bf8fef138619db97fc (patch) | |
| tree | 6848bfa1ac2445fc3e5cb1e9f405a89325e3e9df /src/text.c | |
| parent | a8ac6e2ef957a3edc963a9d0147a016d7755a03c (diff) | |
| download | raylib-7361ed24e26b964709ca80bf8fef138619db97fc.tar.gz raylib-7361ed24e26b964709ca80bf8fef138619db97fc.zip | |
Added support for .otf fonts
stb_truetype supports some .otf fonts, just exposed that functionality.
Diffstat (limited to 'src/text.c')
| -rw-r--r-- | src/text.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -272,7 +272,7 @@ Font LoadFont(const char *fileName) Font font = { 0 }; #if defined(SUPPORT_FILEFORMAT_TTF) - if (IsFileExtension(fileName, ".ttf")) font = LoadFontEx(fileName, DEFAULT_TTF_FONTSIZE, DEFAULT_TTF_NUMCHARS, NULL); + if (IsFileExtension(fileName, ".ttf") || IsFileExtension(fileName, ".otf")) font = LoadFontEx(fileName, DEFAULT_TTF_FONTSIZE, DEFAULT_TTF_NUMCHARS, NULL); else #endif #if defined(SUPPORT_FILEFORMAT_FNT) |
