| 63 | } |
| 64 | |
| 65 | uint TrueTypeFontCache::GetGlyphWidth(GlyphID key) |
| 66 | { |
| 67 | if ((key & SPRITE_GLYPH) != 0) return this->parent->GetGlyphWidth(key); |
| 68 | |
| 69 | GlyphEntry *glyph = this->GetGlyphPtr(key); |
| 70 | if (glyph == nullptr || glyph->data == nullptr) { |
| 71 | this->GetGlyph(key); |
| 72 | glyph = this->GetGlyphPtr(key); |
| 73 | } |
| 74 | |
| 75 | return glyph->width; |
| 76 | } |
| 77 | |
| 78 | const Sprite *TrueTypeFontCache::GetGlyph(GlyphID key) |
| 79 | { |
nothing calls this directly
no test coverage detected