Page 1 of 1

Re: Font padding, spacing, font position

Posted: 2008-07-17T18:44:45-07:00
by anthony
It is on the upper left without any spacing, according to the drawing area defined by the font! In fact without a -size setting the whole image is 'the right size', with no space for the gravity to re-position the font!

See IM Examples, Text to Image, Label (the first thing it deals with!)
http://imagemagick.org/Usage/text/#label

if you want this better you will need to trim the image to remove the excess space the font defines, then compose, or -extent the image size appropriately.

convert -background lightblue -fill blue -font Ravie \
pointsize 20 label:'ImageMagick' \
-trim +repage -extent 200x200 result.gif