| 195 | |
| 196 | |
| 197 | GlyphID FreeTypeFontCache::MapCharToGlyph(char32_t key, bool allow_fallback) |
| 198 | { |
| 199 | assert(IsPrintable(key)); |
| 200 | |
| 201 | FT_UInt glyph = FT_Get_Char_Index(this->face, key); |
| 202 | |
| 203 | if (glyph == 0 && allow_fallback && key >= SCC_SPRITE_START && key <= SCC_SPRITE_END) { |
| 204 | return this->parent->MapCharToGlyph(key); |
| 205 | } |
| 206 | |
| 207 | return glyph; |
| 208 | } |
| 209 | |
| 210 | FT_Library _ft_library = nullptr; |
| 211 |
nothing calls this directly
no test coverage detected