Page 1 of 1

Undesirable outline on white text rendered with pango on a transparent background

Posted: 2015-02-26T07:31:45-07:00
by gondrup
Hi

I am attempting to use IM with Pango to render some text on a transparent background. When setting the color to white the text has a feint black outline.

Command:

Code: Select all

 convert -background transparent pango:"<markup><span color=\"#ffffff\" gravity_hint=\"line\" letter_spacing=\"0\" font_family=\"Arial\" size=\"40000\">Pango Test</span></markup>" out.png
Example output:
Image

Is there a way to render without the black outline?

I must use pango so I can support scripted languages such as Arabic.

Version info:
Version: ImageMagick 6.9.0-6 Q16 x86_64 2015-02-18 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2015 ImageMagick Studio LLC
Features: DPC OpenMP
Delegates (built-in): fontconfig freetype jng jpeg pangocairo png x zlib

Running on Debian Squeeze

Re: Undesirable outline on white text rendered with pango on a transparent background

Posted: 2015-02-26T09:01:46-07:00
by magick
You have hit a transient bug in ImageMagick, it is fixed in ImageMagick version 6.9.0-7.

Re: Undesirable outline on white text rendered with pango on a transparent background

Posted: 2015-02-26T10:27:44-07:00
by gondrup
Hi magick, many thanks for the fast reply.

I have updated to 6.9.0-7 and can confirm that it renders correctly now:
Image

Thanks again!