MCPcopy Create free account
hub / github.com/diasurgical/devilution / CalculateTextWidth

Function CalculateTextWidth

SourceX/controls/modifier_hints.cpp:13–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11namespace {
12
13int CalculateTextWidth(const char *s)
14{
15 int l = 0;
16 while (*s) {
17 l += fontkern[fontframe[gbFontTransTbl[static_cast<unsigned char>(*s++)]]] + 1;
18 }
19 return l;
20}
21
22int SpaceWidth()
23{

Callers 2

SpaceWidthFunction · 0.85
CircleMenuHintMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected