Quoting Fred Weinhaus <[email protected]>:

> One suggestion, crop out the part of the image that you want to fill
> with the text to the same size as the image. Use your percentage to
> figure out what to crop.  Then use label: rather than draw with no
> pointsize. That will draw the text to fill the width or height to the
> best size font. Then composite the cropped text back into the same
> place it was cropped in your image.

I ended up just calculating an appropriate point size, and passing that to 
convert.

Being able to specify the text size as a percentage of image height or width 
just seemed like something that convert would have been able to handle on it's 
own, but it's not a big problem. I just thought I was missing it in the docs 
somewhere.

Thanks for the help, everybody.

Terry
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to