| 114 | } |
| 115 | |
| 116 | const GlyphMetrics* FontRenderer::GetGlyph(uint32_t codepoint, int pixelSize) |
| 117 | { |
| 118 | GlyphKey key{codepoint, pixelSize}; |
| 119 | auto it = _glyphCache.find(key); |
| 120 | if (it != _glyphCache.end()) |
| 121 | return &it->second; |
| 122 | return RasterizeGlyph(codepoint, pixelSize); |
| 123 | } |
| 124 | |
| 125 | const GlyphMetrics* FontRenderer::RasterizeGlyph(uint32_t codepoint, int pixelSize) |
| 126 | { |
no outgoing calls
no test coverage detected