有谁知道是否可以设置用anateateImage编写的文本的行高?我在图像上写了一行文本,“p”和“g”的底部被截断了。

最佳答案

尝试行间间距:
convert -interline-spacing 20 label:'First\nSecond' label_lspace_20.gif
PHP:$draw->setTextInterlineSpacing(20);
另请:http://www.imagemagick.org/Usage/text/#interline-spacing

10-04 16:31