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

Function FreeLayout

engine/font/src/text_layout_skribidi.cpp:42–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42static void FreeLayout(LayoutContext* ctx)
43{
44 // HACK: Due to a bug in SkriBidi (https://github.com/memononen/Skribidi/issues/84)
45 // the "lines" member isn't freed. So, for now we do it here:
46 free((void*)skb_layout_get_lines(ctx->m_Layout));
47
48 skb_layout_destroy(ctx->m_Layout);
49 skb_temp_alloc_destroy(ctx->m_Alloc);
50}
51
52static bool LayoutText(LayoutContext* ctx,
53 uint32_t* codepoints, uint32_t num_codepoints,

Callers 1

TextLayoutSkribidiCreateFunction · 0.85

Calls 4

freeFunction · 0.85
skb_layout_get_linesFunction · 0.85
skb_layout_destroyFunction · 0.85
skb_temp_alloc_destroyFunction · 0.85

Tested by

no test coverage detected