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

Function SetUnicodeGlyph

src/fontcache/spritefontcache.cpp:56–59  ·  view source on GitHub ↗

* Set the SpriteID for a unicode character. * @param fs Font size to set. * @param key Unicode character to set. * @param sprite SpriteID of character. */

Source from the content-addressed store, hash-verified

54 * @param sprite SpriteID of character.
55 */
56void SetUnicodeGlyph(FontSize fs, char32_t key, SpriteID sprite)
57{
58 _char_maps[fs][key] = sprite;
59}
60
61/**
62 * Initialize the glyph map for a font size.

Callers 2

LoadFontGlyphFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected