Kent on  wrote...
| 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.
| 
That is because at this time the two are the same variable!!!!

I have been suggesting that these two functions while related
should be separated.  That is add -alignment, which if unset
falls back on gravity.

| 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?
| 
As for what you are doing.  do the paragraph centering first
turning it into an image,  then horizontally append it with your image.

On the command line that would be...

    convert -gravity center label:'This is\na centered\nparagraph' \
            rose:  +swap  +append   x:


  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
 -----------------------------------------------------------------------------
 The SUN was afraid of the dark, so it never appeared before day came.
                                    Piers Anthony - "Ogre, Ogre" (Xanth series)
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to