* Get SpriteID associated with a character. * @param key Character to find. * @return SpriteID for character, or 0 if not present. */
| 41 | * @return SpriteID for character, or 0 if not present. |
| 42 | */ |
| 43 | static SpriteID GetUnicodeGlyph(FontSize fs, char32_t key) |
| 44 | { |
| 45 | auto found = _char_maps[fs].find(key); |
| 46 | if (found != std::end(_char_maps[fs])) return found->second; |
| 47 | return 0; |
| 48 | } |
| 49 | |
| 50 | /** |
| 51 | * Set the SpriteID for a unicode character. |
no test coverage detected