Page 1 of 1

svg rasterization font problems

Posted: 2017-03-20T10:18:01-07:00
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?

Re: svg rasterization font problems

Posted: 2017-03-20T10:24:57-07:00
by snibgo
I can't see any blue or yellow borders in your image.

Re: svg rasterization font problems

Posted: 2017-03-20T10:42:30-07:00
by gghergo
Try to zoom in testt content. You should see those borders

Re: svg rasterization font problems

Posted: 2017-03-20T11:00:33-07:00
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.