MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / getCharacterWidth

Function getCharacterWidth

src/OpenLoco/src/Graphics/Gfx.cpp:493–496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

491 }
492
493 int16_t getCharacterWidth(Font font, char32_t character)
494 {
495 return _characterWidths[getFontBaseIndex(font) / 224][character - 32];
496 }
497
498 void setCharacterWidth(Font font, char32_t character, int16_t width)
499 {

Callers 9

loopNewlineFunction · 0.85
drawStringYOffsetsFunction · 0.85
drawStringMaxCharsFunction · 0.85
wrapStringFunction · 0.85
wrapStringTickerFunction · 0.85
getStringWidthFunction · 0.85
getStringWidthOneLineFunction · 0.85
getMaxStringWidthFunction · 0.85
drawPreviewImageMethod · 0.85

Calls 1

getFontBaseIndexFunction · 0.85

Tested by

no test coverage detected