MCPcopy Create free account
hub / github.com/defold/defold / FontDestroy

Function FontDestroy

engine/font/src/font.cpp:49–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49void 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
58HFont FontLoadFromMemory(const char* path, void* data, uint32_t data_size, bool allocate)
59{

Callers 8

TearDownMethod · 0.85
TearDownMethod · 0.85
TearDownMethod · 0.85
TearDownMethod · 0.85
TEST_FFunction · 0.85
DeleteResourceFunction · 0.85
TTF_RecreateFunction · 0.85
ResGlyphBankDestroyFunction · 0.85

Calls 3

freeFunction · 0.85
ToFontFunction · 0.70
assertFunction · 0.50

Tested by 5

TearDownMethod · 0.68
TearDownMethod · 0.68
TearDownMethod · 0.68
TearDownMethod · 0.68
TEST_FFunction · 0.68