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

Function TextLayoutCreate

engine/font/src/text_layout.cpp:81–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81TextResult TextLayoutCreate(HFontCollection collection,
82 uint32_t* codepoints, uint32_t num_codepoints,
83 TextLayoutSettings* settings, HTextLayout* outlayout)
84{
85#if defined(FONT_USE_SKRIBIDI)
86 TextLayoutType layout_type = FontCollectionGetLayoutType(collection);
87 if (layout_type == TEXT_LAYOUT_TYPE_FULL)
88 return TextLayoutSkribidiCreate(collection, codepoints, num_codepoints, settings, outlayout);
89#endif
90 return TextLayoutLegacyCreate(collection, codepoints, num_codepoints, settings, outlayout);
91}

Callers 9

CreateProfilerTextLayoutFunction · 0.85
CreateTextLayoutFunction · 0.85
GetTextMetricsFunction · 0.85
CreateFontVertexDataFunction · 0.85
TestLayoutFunction · 0.85
TEST_FFunction · 0.85
GetOrCreateTextLayoutFunction · 0.85
ResFontPrewarmTextFunction · 0.85

Calls 3

TextLayoutSkribidiCreateFunction · 0.85
TextLayoutLegacyCreateFunction · 0.85

Tested by 3

CreateTextLayoutFunction · 0.68
TestLayoutFunction · 0.68
TEST_FFunction · 0.68