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

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
gondrup
Posts: 2
Joined: 2015-02-26T07:16:28-07:00
Authentication code: 6789

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

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

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

Post by magick »

You have hit a transient bug in ImageMagick, it is fixed in ImageMagick version 6.9.0-7.
gondrup
Posts: 2
Joined: 2015-02-26T07:16:28-07:00
Authentication code: 6789

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

Post 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!
Post Reply