| 76 | } |
| 77 | |
| 78 | const Sprite *TrueTypeFontCache::GetGlyph(GlyphID key) |
| 79 | { |
| 80 | if ((key & SPRITE_GLYPH) != 0) return this->parent->GetGlyph(key); |
| 81 | |
| 82 | /* Check for the glyph in our cache */ |
| 83 | GlyphEntry *glyph = this->GetGlyphPtr(key); |
| 84 | if (glyph != nullptr && glyph->data != nullptr) return glyph->GetSprite(); |
| 85 | |
| 86 | return this->InternalGetGlyph(key, GetFontAAState()); |
| 87 | } |
no test coverage detected