| 275 | } |
| 276 | |
| 277 | dp::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 | |
| 287 | StraightTextLayout::StraightTextLayout(std::string const & text, float fontSize, ref_ptr<dp::TextureManager> textures, |
| 288 | dp::Anchor anchor, bool forceNoWrap, |
no test coverage detected