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

Function getLineHeight

src/OpenLoco/src/Graphics/TextRenderer.cpp:26–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24 static int16_t clipString(Font font, int16_t width, char* string);
25
26 static uint16_t getLineHeight(Font font)
27 {
28 if (font == Font::medium_normal || font == Font::medium_bold)
29 {
30 return 10;
31 }
32 else if (font == Font::small)
33 {
34 return 6;
35 }
36 else if (font == Font::large)
37 {
38 return 18;
39 }
40 return 0;
41 }
42
43 static uint16_t getSmallerLineHeight(Font font)
44 {

Callers 8

loopNewlineFunction · 0.85
drawStringLeftWrappedFunction · 0.85
drawStringCentredWrappedFunction · 0.85
drawStringCentredRawFunction · 0.85
drawStringYOffsetsFunction · 0.85
drawStringMaxCharsFunction · 0.85
drawStringTickerFunction · 0.85
getLineHeightMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected