MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / _text_width

Method _text_width

display.py:2638–2642  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

2636 slot = W // len(items)
2637 for i, (icon, val) in enumerate(items):
2638 x = i * slot + 3
2639 icon = _fit_icon(icon)
2640 if icon is not None:
2641 try:
2642 image.paste(icon, (x, y))
2643 tx = x + icon.width + 2
2644 except Exception:
2645 tx = x + icon_h + 2

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected