| 6 | namespace snap::drawing { |
| 7 | |
| 8 | static std::vector<ShapedGlyph> toGlyphVec(const ShapedGlyph* glyphs, size_t length) { |
| 9 | std::vector<ShapedGlyph> out; |
| 10 | out.reserve(length); |
| 11 | |
| 12 | for (size_t i = 0; i < length; i++) { |
| 13 | out.emplace_back() = glyphs[i]; |
| 14 | } |
| 15 | |
| 16 | return out; |
| 17 | } |
| 18 | |
| 19 | static std::vector<ShapedGlyph> generateGlyphVec(const Character* characters, size_t length) { |
| 20 | std::vector<ShapedGlyph> out; |