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

Method GetTextOffset

libs/drape_frontend/text_layout.cpp:354–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352}
353
354glsl::vec2 StraightTextLayout::GetTextOffset(m2::PointF const & symbolSize, dp::Anchor textAnchor,
355 dp::Anchor symbolAnchor) const
356{
357 auto const symbolBasedOffset = GetSymbolBasedTextOffset(symbolSize, textAnchor, symbolAnchor);
358 return m_baseOffset + glsl::ToVec2(symbolBasedOffset);
359}
360
361void StraightTextLayout::CacheStaticGeometry(dp::TextureManager::ColorRegion const & colorRegion,
362 gpu::TTextStaticVertexBuffer & staticBuffer) const

Callers 3

UpdateMethod · 0.80
DrawSubStringPlainMethod · 0.80
DrawSubStringOutlinedMethod · 0.80

Calls 1

ToVec2Function · 0.85

Tested by

no test coverage detected