From: Eduard Bondarenko Date: 2008-04-01T01:55:16+09:00 Subject: Re: metrics rmagick problem Thanks Tim, But centerGravity don't works as expects. I've added d.gravity = Magick::CenterGravity and changed d.text(0,0, text) but the text isn't in the image center. annotate give the same result. Best regards, Eduard Tim Hunter wrote: > 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/.