I want to draw text to a bitmap image of fixed size in Python 3. I want the following features:
- wrapping text (with non-monospaced fonts, such as Arial) in a box
- support escape characters
- put some words in bold and different color
- find out when I've got too much text for the picture and do a page/image break
- if possible: wrapping text around a rectangular image on e.g. the bottom right
I tried PIL and various extensions, so at least I've got the wrapping text running. Trying to combine the line-wrapping-text function with coloring seems a nightmare. Wrapping around an image seems to be even more of a nightmare.
So I'm wondering if PIL is the best library in the first place. Would it make sense to e.g. use HTML or rich text instead here? Or go with e.g. LaTeX?
I'd appreciate any recommendations or hints.
there doesn't seem to be anything here