MCPcopy Create free account
hub / github.com/comaps/comaps / ShapeMultilineText

Method ShapeMultilineText

libs/drape/texture_manager.cpp:564–582  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

562}
563
564TextureManager::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
584GlyphFontAndId TextureManager::GetSpaceGlyph() const
585{

Callers 1

CacheStaticTextMethod · 0.80

Calls 4

backMethod · 0.80
TokenizeFunction · 0.50
emptyMethod · 0.45
emplace_backMethod · 0.45

Tested by

no test coverage detected