| 562 | } |
| 563 | |
| 564 | TextureManager::TShapedTextLines TextureManager::ShapeMultilineText(float fontPixelHeight, std::string_view utf8, |
| 565 | char const * delimiters, |
| 566 | TMultilineGlyphsBuffer & multilineGlyphRegions, |
| 567 | localisation::LanguageIndex const textLanguageIndex) |
| 568 | { |
| 569 | TShapedTextLines textLines; |
| 570 | strings::Tokenize(utf8, delimiters, [&](std::string_view line) |
| 571 | { |
| 572 | if (line.empty()) |
| 573 | return; |
| 574 | |
| 575 | multilineGlyphRegions.emplace_back(); |
| 576 | |
| 577 | textLines.emplace_back( |
| 578 | ShapeSingleTextLine(fontPixelHeight, line, &multilineGlyphRegions.back(), textLanguageIndex)); |
| 579 | }); |
| 580 | |
| 581 | return textLines; |
| 582 | } |
| 583 | |
| 584 | GlyphFontAndId TextureManager::GetSpaceGlyph() const |
| 585 | { |
no test coverage detected