MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / font

Function font

experiments/human_eval/draw_model_eval_numberline.py:63–67  ·  view source on GitHub ↗
(path: str, size: int)

Source from the content-addressed store, hash-verified

61
62
63def font(path: str, size: int) -> ImageFont.FreeTypeFont:
64 try:
65 return ImageFont.truetype(path, size)
66 except OSError:
67 return ImageFont.load_default()
68
69
70F_TITLE = font(BOLD, 44)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected