| 138 | } |
| 139 | |
| 140 | std::pair<std::vector<GlyphHandle>, std::vector<GlyphHandle>> GetGlyphs( |
| 141 | const std::vector<std::vector<GlyphHandle>>& glyphLines) { |
| 142 | std::vector<GlyphHandle> simpleGlyphs = {}; |
| 143 | std::vector<GlyphHandle> colorGlyphs = {}; |
| 144 | for (auto& line : glyphLines) { |
| 145 | for (auto& glyph : line) { |
| 146 | simpleGlyphs.push_back(glyph); |
| 147 | if (glyph->getFont().hasColor()) { |
| 148 | colorGlyphs.push_back(glyph); |
| 149 | } |
| 150 | } |
| 151 | } |
| 152 | return {simpleGlyphs, colorGlyphs}; |
| 153 | } |
| 154 | |
| 155 | GraphicContent* TextContentCache::createContent(Frame layerFrame) const { |
| 156 | auto textDocument = sourceText->getValueAt(layerFrame).get(); |
no test coverage detected