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

Function TextLayoutRelease

engine/font/src/text_layout.cpp:53–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void TextLayoutRelease(HTextLayout layout)
54{
55 assert(layout);
56 assert(layout->m_RefCount > 0);
57 if (--layout->m_RefCount == 0)
58 {
59 layout->m_Destroy(layout);
60 }
61}
62
63uint32_t TextToCodePoints(const char* text, dmArray<uint32_t>& codepoints)
64{

Callers 14

ClearCachedTextLayoutsFunction · 0.85
CreateProfilerTextLayoutFunction · 0.85
TEST_FFunction · 0.85
ReleaseTextEntriesFunction · 0.85
GetTextMetricsFunction · 0.85
CreateFontVertexDataFunction · 0.85
TEST_FFunction · 0.85
FreeTextLayoutFunction · 0.85
SetNodeTextLayoutFunction · 0.85
InvalidateTextLayoutFunction · 0.85
GetOrCreateTextLayoutFunction · 0.85

Calls 1

assertFunction · 0.50

Tested by 2

TEST_FFunction · 0.68
TEST_FFunction · 0.68