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

Method draw_ttf_centered

pager/pagerctl.py:426–428  ·  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

424 return _lib.pager_ttf_height(font_path.encode(), font_size)
425
426 def draw_ttf_centered(self, y, text, color, font_path, font_size):
427 """Draw horizontally centered TTF text."""
428 _lib.pager_draw_ttf_centered(y, text.encode(), color, font_path.encode(), font_size)
429
430 def draw_ttf_right(self, y, text, color, font_path, font_size, padding=0):
431 """Draw right-aligned TTF text."""

Callers 10

draw_hostsMethod · 0.45
draw_credentialsMethod · 0.45
draw_vulnerabilitiesMethod · 0.45
drawMethod · 0.45
_draw_settings_screenMethod · 0.45
draw_menuMethod · 0.45
_draw_main_menuMethod · 0.45
_show_messageMethod · 0.45
_show_clear_data_menuMethod · 0.45
_confirmMethod · 0.45

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected