atomicparade
atomicparade
I've made a first attempt at implementing this, using a greedy algorithm: https://github.com/atomicparade/pil_autowrap/blob/main/pil_autowrap/pil_autowrap.py#L73-L220 Example output [here](https://github.com/atomicparade/pil_autowrap/). Issues: - I don't know how appropriate the results are for Arabic and Hebrew....
> Is there an existing library that can determine word boundaries that could be included by PIL as an extra? After a brief search, I couldn't find one that is...
I am exploring adding a `font_wraptext` function (to start; would probably be nice to have a function to automatically determine an appropriate font [size] as well) to `src/_imagingft.c` and adding...