Page 1 of 1

SVG Fonts possible yet in convert?

Posted: 2010-03-12T09:02:26-07:00
by lostim
Hi,

I tried to convert a .svg image containing font data (letter shapes generated by ttf2svg) to a gif.
Sadly it doesn´t seem to recognize the embedded svg font.
Is this not yet possible to convert? The svg shows correctly in browser.

( convert version 6.5.9-2 )

thanks

lostim

Re: SVG Fonts possible yet in convert?

Posted: 2010-03-12T09:56:53-07:00
by magick
Type
  • identify -list configure
on the command line. Make sure one of the DELEGATES is rsvg:
  • DELEGATES autotrace bzlib djvu fftw fontconfig freetype gvc jpeg jng jp2 lcms lqr mpeg openexr png rsvg tiff x11 xml zlib
Post a URL to your SVG image here so we can download and reproduce the problem.

Re: SVG Fonts possible yet in convert?

Posted: 2010-03-12T10:54:13-07:00
by lostim
Thanks for the quick reply, I do not have console access to the linux system.
Anyway, let me do some more tests. I just figured out that the font in the svg shown in the browser only works
if the font is installed. So actually my problem is a little different than I did expect before.

No font in the svg is used to draw the text in the svg... so obviously something is wrong with the svg.


EDIT:
Hmm I think I just found out that displaying embedded fonts simply isn´t possible. Hmm, I don´t get the clue of embedded fonts in svg then.
Anyway, this is not an ImageMagick problem and so I am wrong here for the questions as long as I don´t get an SVG show its text using an embedded fonts.

Re: SVG Fonts possible yet in convert?

Posted: 2012-12-11T15:43:18-07:00
by ddrewa
I'm having this same problem. I have two .svg files: one with an embedded font (base64 .woff data), and another with an externally-linked .svg font file. Both .svg files display correctly when viewed in a browser, but the custom font is ignored when I convert either .svg file to .png. Under DELEGATES, rsvg is listed. Version is 6.6.0.4. Any thoughts? Does ImageMagick support custom fonts when converting .svg files to .png?