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

Method draw_ttf_centered

tests/test_pager_code.py:269–272  ·  view source on GitHub ↗

Draw horizontally centered TTF text.

(self, y, text, color, font_path, font_size)

Source from the content-addressed store, hash-verified

267 return int(font_size * 1.2)
268
269 def draw_ttf_centered(self, y, text, color, font_path, font_size):
270 """Draw horizontally centered TTF text."""
271 if VERBOSE:
272 print(f"[MockPager] draw_ttf_centered(y={y}, '{text[:30]}')")
273
274 def draw_ttf_right(self, y, text, color, font_path, font_size, padding=0):
275 """Draw right-aligned TTF text."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected