[magick-users] Does text alignment work?

Kent Kent at TheMagicM.com
Tue Aug 28 00:25:15 PDT 2007


Hi folks --

I'm trying to do some moderately complex text operations, such as 
creating a centered paragraph of text, and positioning it at the left 
or right side of a larger bitmap.  From reading the docs, it looks 
like the combination of gravity and text-alignment settings should do 
the trick.  But whenever I use DrawSetTextAlignment, it seems to blow 
away my gravity setting.

If I can't get this to work, I can calculate the text positions 
manually ... oh wait, I can't, because QueryFontMetrics apparently 
doesn't work in multi-line mode (see my last posting).  Any solutions, anyone?

Thanks --

   Kent Multer                  |\  /|
   Magic Metal Productions      | \/ |
   http://TheMagicM.com         |    |

  * Web developer/designer
  * Author, The Official Miva Web Scripting Book -- available on-line:
    http://www.amazon.com/exec/obidos/ISBN=0966103211/magicmetalproducA



More information about the Magick-users mailing list