| 129 | } |
| 130 | |
| 131 | void TextShaperCache::insert(const TextShaperCacheKey& key, const ShapedGlyph* glyphs, size_t glyphsLength) { |
| 132 | auto node = TextShaperCacheNode::make(key.fontId, |
| 133 | key.letterSpacing, |
| 134 | key.script, |
| 135 | key.isRightToLeft, |
| 136 | key.characters, |
| 137 | key.length, |
| 138 | glyphs, |
| 139 | glyphsLength, |
| 140 | key.hash()); |
| 141 | _cache.insert(node); |
| 142 | } |
| 143 | |
| 144 | } // namespace snap::drawing |
| 145 |