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

Method GetGlyphs

libs/drape_frontend/text_layout.cpp:277–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275}
276
277dp::TGlyphs TextLayout::GetGlyphs() const
278{
279 // TODO(AB): Can conversion to TGlyphs be avoided?
280 dp::TGlyphs glyphs;
281 glyphs.reserve(m_shapedGlyphs.m_glyphs.size());
282 for (auto const & glyph : m_shapedGlyphs.m_glyphs)
283 glyphs.emplace_back(glyph.m_key);
284 return glyphs;
285}
286
287StraightTextLayout::StraightTextLayout(std::string const & text, float fontSize, ref_ptr<dp::TextureManager> textures,
288 dp::Anchor anchor, bool forceNoWrap,

Callers 3

PathTextHandleMethod · 0.45
DrawSubStringPlainMethod · 0.45
DrawSubStringOutlinedMethod · 0.45

Calls 3

reserveMethod · 0.45
sizeMethod · 0.45
emplace_backMethod · 0.45

Tested by

no test coverage detected