| 47 | } |
| 48 | |
| 49 | void FontDestroy(HFont hfont) |
| 50 | { |
| 51 | assert(hfont); |
| 52 | Font* font = ToFont(hfont); |
| 53 | const char* path = font->m_Path; // Keep it alive during destruction (for better debugging) |
| 54 | font->m_DestroyFont(font); |
| 55 | free((void*)path); |
| 56 | } |
| 57 | |
| 58 | HFont FontLoadFromMemory(const char* path, void* data, uint32_t data_size, bool allocate) |
| 59 | { |