| 97 | } |
| 98 | |
| 99 | static HTextLayout CreateTextLayout(dmRender::HFontMap font_map, const char* text, const TextLayoutSettings& settings) |
| 100 | { |
| 101 | dmArray<uint32_t> codepoints; |
| 102 | TextToCodePoints(text, codepoints); |
| 103 | |
| 104 | TextLayoutSettings layout_settings = settings; |
| 105 | HTextLayout layout = 0; |
| 106 | TextResult r = TextLayoutCreate(dmRender::GetFontCollection(font_map), codepoints.Begin(), codepoints.Size(), &layout_settings, &layout); |
| 107 | EXPECT_EQ(TEXT_RESULT_OK, r); |
| 108 | EXPECT_NE((HTextLayout)0, layout); |
| 109 | return layout; |
| 110 | } |
| 111 | |
| 112 | static uint32_t QueueTextAndCopyVertices(dmRender::HRenderContext render_context, dmRender::HFontMap font_map, const dmRender::DrawTextParams& params, dmArray<uint8_t>& out_vertices, HTextLayout* out_layout, float* out_radius_sq) |
| 113 | { |
no test coverage detected