| 128 | } |
| 129 | |
| 130 | const Sprite *SpriteFontCache::GetGlyph(GlyphID key) |
| 131 | { |
| 132 | SpriteID sprite = static_cast<SpriteID>(key & ~SPRITE_GLYPH); |
| 133 | if (sprite == 0) sprite = GetUnicodeGlyph(this->fs, '?'); |
| 134 | return GetSprite(sprite, SpriteType::Font); |
| 135 | } |
| 136 | |
| 137 | uint SpriteFontCache::GetGlyphWidth(GlyphID key) |
| 138 | { |
no test coverage detected