| 135 | } |
| 136 | |
| 137 | uint SpriteFontCache::GetGlyphWidth(GlyphID key) |
| 138 | { |
| 139 | SpriteID sprite = static_cast<SpriteID>(key & ~SPRITE_GLYPH); |
| 140 | if (sprite == 0) sprite = GetUnicodeGlyph(this->fs, '?'); |
| 141 | return SpriteExists(sprite) ? GetSprite(sprite, SpriteType::Font)->width + ScaleFontTrad(this->fs != FS_NORMAL ? 1 : 0) : 0; |
| 142 | } |
| 143 | |
| 144 | GlyphID SpriteFontCache::MapCharToGlyph(char32_t key, [[maybe_unused]] bool allow_fallback) |
| 145 | { |
no test coverage detected