| 69 | static ImFont* monoFont = nullptr; |
| 70 | |
| 71 | static const char* findFont(const char* const* paths) |
| 72 | { |
| 73 | for (int i = 0; paths[i]; i++) |
| 74 | { |
| 75 | FILE* f = fopen(paths[i], "rb"); |
| 76 | if (f) |
| 77 | { |
| 78 | fclose(f); |
| 79 | return paths[i]; |
| 80 | } |
| 81 | } |
| 82 | return nullptr; |
| 83 | } |
| 84 | |
| 85 | static void loadFont() |
| 86 | { |