Page 1 of 1

Text is cut on top

Posted: 2012-01-26T20:18:37-07:00
by xerenader
Hi, I have a problem in some fonts that I use to generate text in ImageMagick like Mosaic Leaf and Lavanderia. Text is cut on top when it is generated. Here is my sample:

convert -size 800x -background "#FFFFFF" -font Mosaicleaf086.otf -pointsize 30 -fill "#000000" -gravity west caption:"TEST" -density 300 test.png

Thanks in advance!

Re: Text is cut on top

Posted: 2012-01-31T21:08:08-07:00
by anthony
More than likely the font is 'badly designed'.
http://www.imagemagick.org/Usage/text/#bounds
and
http://www.imagemagick.org/Usage/text/#overflow

The best way around it is to -annotate (draw) the font onto a larger canvas.
http://www.imagemagick.org/Usage/text/#annotate