MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / findFont

Function findFont

apps/tools/Studio/main.cpp:71–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69static ImFont* monoFont = nullptr;
70
71static 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
85static void loadFont()
86{

Callers 1

loadFontFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected