| 79 | } |
| 80 | |
| 81 | TextResult 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 | } |