| 40 | } |
| 41 | |
| 42 | static 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 | |
| 52 | static bool LayoutText(LayoutContext* ctx, |
| 53 | uint32_t* codepoints, uint32_t num_codepoints, |
no test coverage detected