(draw: ImageDraw.ImageDraw, text: str, font: ImageFont.FreeTypeFont)
| 140 | |
| 141 | |
| 142 | def text_box(draw: ImageDraw.ImageDraw, text: str, font: ImageFont.FreeTypeFont) -> tuple[int, int]: |
| 143 | box = draw.textbbox((0, 0), text, font=font) |
| 144 | return box[2] - box[0], box[3] - box[1] |
| 145 | |
| 146 | |
| 147 | def wrap_lines(text: str, chars: int) -> list[str]: |
no outgoing calls
no test coverage detected