New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Word wrapping Drawing.text #298
Comments
Any idea of how to do this using draw.text method instead of using caption method ? |
I've run into this issue today. ImageMagick can definitely do it itself. I might have a look into adding this if I get the time. |
I've just submitted a pull request (#375) to allow a stroke on |
Following up on this. Currently the drawing class will remain very low-level API. However word-wrapping is often requested. I'm hesitant at attempting & shipping a word-wrap solution as users will often have conflicting behavior requirements (e.g. locale grammar, text/alignment tracking, hyphenation rules/exceptions). Perhaps, one day, we'll introduce a http://docs.wand-py.org/en/latest/guide/draw.html#word-wrapping Revisions / critiques always welcome on the usage guides. |
I'm not sure this is the appropriate place to ask for this. I'd call it a feature request but I'm going to ask it as a question, because I'm not sure if it actually can be done using Wand as it is now (i.e. I'm missing something). I think ImageMagick can do it itself.
I want to word wrap text to a certain width in pixels with
wand.drawing.Drawing.text
wand.image.BaseImage.caption
is (I think) unsuitable for my needs, as I need the text to have a stroke. By now I'm usingtextwrap.fill
from the standard library as a workaround but, as you can imagine, it's not a perfect solution.Thanks for Wand by the way, great work.
The text was updated successfully, but these errors were encountered: