MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / MapCharToGlyph

Method MapCharToGlyph

src/fontcache/spritefontcache.cpp:144–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144GlyphID SpriteFontCache::MapCharToGlyph(char32_t key, [[maybe_unused]] bool allow_fallback)
145{
146 assert(IsPrintable(key));
147 SpriteID sprite = GetUnicodeGlyph(this->fs, key);
148 if (sprite == 0) return 0;
149 return SPRITE_GLYPH | sprite;
150}
151
152bool SpriteFontCache::GetDrawGlyphShadow()
153{

Callers

nothing calls this directly

Calls 2

IsPrintableFunction · 0.85
GetUnicodeGlyphFunction · 0.85

Tested by

no test coverage detected