# Wrap text in rmagick

**URL:** <https://www.ruby-forum.com/t/wrap-text-in-rmagick/80584>\
**Category:** Ruby\
**Created:** [December 28, 2006, 10:15pm UTC](https://www.ruby-forum.com/t/wrap-text-in-rmagick/80584 "2006-12-28T22:15:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![otown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/cc9497/32.png) [@otown](https://www.ruby-forum.com/u/otown)\
**Post date:** [December 28, 2006, 10:15pm UTC](https://www.ruby-forum.com/t/wrap-text-in-rmagick/80584/1 "2006-12-28T22:15:47Z")

</div>

Anyone know how to wrap text with rmagick using the annotate method? I  
found the Image.read(“caption:my text”) method - but I’d like to be  
able to use the annotate method…

thanks!

---

<div class="post-metadata">

**Author:** ![otown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/cc9497/32.png) [@otown](https://www.ruby-forum.com/u/otown)\
**Post date:** [December 29, 2006, 4:00am UTC](https://www.ruby-forum.com/t/wrap-text-in-rmagick/80584/2 "2006-12-29T04:00:45Z")

</div>

otown wrote:

> Anyone know how to wrap text with rmagick using the annotate method? I  
> found the Image.read(“caption:my text”) method - but I’d like to be  
> able to use the annotate method…
> 
> thanks!

If you mean automatically wrap to the image size, annotate can’t do  
that. If you just want to wrap lines, separate the lines with \n  
characters.
