From: Tim Hunter Date: 2008-04-01T01:29:46+09:00 Subject: Re: metrics rmagick problem Eduard Bondarenko wrote: > I get a strange rmagick result. > > I need to add a centered text to image. > Draw#inspect tell me that all is good, but on result image text isn't > centered. > > See http://pastie.caboo.se/173196 > for code and link to result image. > > Thanks for any help in advance. You're working too hard :-) Use gravity(Magick::CenterGravity), like the example for composite_layers: http://studio.imagemagick.org/RMagick/doc/ilist.html#composite_layers. -- Posted via http://www.ruby-forum.com/.