pil_autowrap This is a greedy text-wrapping algorithm that attempts to wrap text at successfully smaller font sizes until the text fits.