MCPcopy
hub / github.com/browser-use/video-use / load_font

Function load_font

helpers/timeline_view.py:163–170  ·  view source on GitHub ↗
(size: int)

Source from the content-addressed store, hash-verified

161
162
163def load_font(size: int) -> ImageFont.ImageFont:
164 for fp in FONT_CANDIDATES:
165 if Path(fp).exists():
166 try:
167 return ImageFont.truetype(fp, size)
168 except Exception:
169 continue
170 return ImageFont.load_default()
171
172
173# -------- Composite ----------------------------------------------------------

Callers 1

render_timelineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected