svg rasterization font problems

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
gghergo
Posts: 2
Joined: 2017-03-20T09:34:01-07:00
Authentication code: 1151

svg rasterization font problems

Post by gghergo »

Hi,
I've a problem with svg rasterization of some fonts. For example starting with following svg

<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1530.709 708.661" >
<text x="50" y="270" font-family="Futura LT" style="font-size:70px;" fill="#eeeeee">TEST</text>
<text x="50" y="370" font-family="Futura LT" style="font-size:70px;" fill="#eeeeee">TESTT</text>
<text x="50" y="470" font-family="Futura LT" style="font-size:70px;" fill="#eeeeee">TEST</text>
</svg>

where I've used "Futura LT Book" font with same text element attributes excluding x and contents (TEST or TESTT).

Launching the command

magick -background #ffffff input.svg output.png

I obtain this image:

Image

where for TESTT content I see blue and yellow borders.

How can I remove this borders?
Last edited by gghergo on 2017-03-20T15:30:41-07:00, edited 1 time in total.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: svg rasterization font problems

Post by snibgo »

I can't see any blue or yellow borders in your image.
snibgo's IM pages: im.snibgo.com
gghergo
Posts: 2
Joined: 2017-03-20T09:34:01-07:00
Authentication code: 1151

Re: svg rasterization font problems

Post by gghergo »

Try to zoom in testt content. You should see those borders
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: svg rasterization font problems

Post by snibgo »

Okay, yes, I see what you mean, a narrow band of colour on each side of the letters. It also happens with IM v6.9.5-3, using RSVG or Inkscape as the delegate. It doesn't happen when Inkscape alone is used.

It doesn't happen when the string is "TESTE" or "TESTF".

Weird.
snibgo's IM pages: im.snibgo.com
Post Reply