| 33 | } |
| 34 | |
| 35 | static FontType GetFontType(const char* path) |
| 36 | { |
| 37 | const char* ext = strrchr(path, '.'); |
| 38 | if (!ext) |
| 39 | return FONT_TYPE_UNKNOWN; |
| 40 | |
| 41 | if (strcmp(ext, ".ttf") == 0 || strcmp(ext, ".TTF") == 0) |
| 42 | return FONT_TYPE_STBTTF; |
| 43 | if (strcmp(ext, ".otf") == 0 || strcmp(ext, ".OTF") == 0) |
| 44 | return FONT_TYPE_STBOTF; |
| 45 | |
| 46 | return FONT_TYPE_UNKNOWN; |
| 47 | } |
| 48 | |
| 49 | void FontDestroy(HFont hfont) |
| 50 | { |
no outgoing calls
no test coverage detected