MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / FontSpriteGetCodepointSprite

Function FontSpriteGetCodepointSprite

src/openrct2/drawing/Font.cpp:316–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314}
315
316ImageId FontSpriteGetCodepointSprite(FontStyle fontStyle, int32_t codepoint)
317{
318 auto codePointOffset = FontSpriteGetCodepointOffset(codepoint);
319 int32_t offset = EnumValue(fontStyle) * SPR_FONTS_GLYPH_COUNT;
320
321 return ImageId(SPR_FONTS_BEGIN + offset + codePointOffset, OpenRCT2::Drawing::Colour::black);
322}
323
324int32_t FontGetLineHeight(FontStyle fontStyle)
325{

Callers 1

drawCharacterSpriteFunction · 0.85

Calls 3

EnumValueFunction · 0.85
ImageIdClass · 0.70

Tested by

no test coverage detected