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

Method ttf_height

pager/pagerctl.py:422–424  ·  view source on GitHub ↗

Get height of TTF font in pixels.

(self, font_path, font_size)

Source from the content-addressed store, hash-verified

420 return _lib.pager_ttf_width(text.encode(), font_path.encode(), font_size)
421
422 def ttf_height(self, font_path, font_size):
423 """Get height of TTF font in pixels."""
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."""

Callers

nothing calls this directly

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected