Page 1 of 1

Pango text not centering

Posted: 2017-08-22T13:29:34-07:00
by coloring
Hi, I have a little problem with Pango when trying to draw text on a picture. The text doesn't center on it, it just goes in the upper left corner.

Example command:

convert -background black -fill white -font HelveticaNeueCond -pointsize 42 -size 1280x720 -gravity center -density 72 pango:"<span font="HelveticaNeueCond><b>test</b></span>" -type truecolormatte PNG32:pic.png

Thanks!

Version: ImageMagick 7.0.6-3 Q16 arm 2017-07-28 http://www.imagemagick.org
Copyright: © 1999-2017 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI OpenMP
Delegates (built-in): fftw fontconfig freetype jng jp2 jpeg lcms lzma pangocairo png tiff xml zlib