ATLChris
ATLChris

Reputation: 3296

ImageMagick: annotateImage line height?

Does anyone know if it is possible to set the line height of text written with annotateImage? I am writing a single line of text on an image and the bottoms of "p" & "g" are getting cut off.

Upvotes: 4

Views: 4000

Answers (1)

supernifty
supernifty

Reputation: 4281

Try interline spacing:

convert -interline-spacing 20 label:'First\nSecond' label_lspace_20.gif

PHP: $draw->setTextInterlineSpacing(20);

See: http://www.imagemagick.org/Usage/text/#interline-spacing

Upvotes: 11

Related Questions