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

Method text_width

pager/pagerctl_mock.py:310–312  ·  view source on GitHub ↗
(self, text, size=1)

Source from the content-addressed store, hash-verified

308 self._surface.blit(surf, (x, y))
309
310 def text_width(self, text, size=1):
311 font = self._get_builtin_font(size)
312 return font.size(text)[0]
313
314 def draw_number(self, x, y, num, color, size=1):
315 return self.draw_text(x, y, str(num), color, size)

Callers

nothing calls this directly

Calls 1

_get_builtin_fontMethod · 0.95

Tested by

no test coverage detected