Page 1 of 1

Critical errors using pango?

Posted: 2013-01-01T21:18:57-07:00
by saphyn
Hoping this isn't just something I overlooked on my end.

Using the very first example

Code: Select all

convert -background lightblue pango:"Anthony Thyssen" pango.gif
from command line returns the errors

Code: Select all

(process:9523): Pango-CRITICAL **: pango_font_description_set_size: assertion `size >= 0' failed
convert: memory allocation failed `Anthony Thyssen' @ error/pango.c/ReadPANGOImage/382.
convert: no images defined `pango.gif' @ error/convert.c/ConvertImageCommand/3078.
Other examples yield similar results.

edit: Sorry, forgot to mention I'm running Arch Linux with ImageMagick version 6.8.0.7 and Pango 1.32.4.

Re: Critical errors using pango?

Posted: 2013-01-02T04:24:42-07:00
by magick
We can reproduce the problem you posted and have a patch in ImageMagick 6.8.0-8 Beta available by sometime tomorrow. Thanks.

Re: Critical errors using pango?

Posted: 2013-01-02T10:26:52-07:00
by saphyn
Thank you for your fast fix.

I've downloaded and installed ImageMagick 6.8.1-8, which has fixed the above problem, but now using example

Code: Select all

 convert -background lightblue -size 150 \
          pango:"Anthony Thyssen is the main author of IM Examples" \
          pango_size.gif
Every word makes a new line, so instead of

Image

I get

Image

Re: Critical errors using pango?

Posted: 2013-01-02T11:23:10-07:00
by magick
Ok, stand by while we investigate.

Re: Critical errors using pango?

Posted: 2013-01-06T11:47:12-07:00
by saphyn
Just wanted to say I upgraded to the new version 6.8.1-9, and now it seems to be working (no new lines after text).
To get the font the same size as the example, however, I needed to include a single <small> tag.

Thanks.