SVG Fonts possible yet in convert?

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
lostim

SVG Fonts possible yet in convert?

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

Re: SVG Fonts possible yet in convert?

Post 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.
lostim

Re: SVG Fonts possible yet in convert?

Post 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.
ddrewa
Posts: 1
Joined: 2012-12-11T15:38:39-07:00
Authentication code: 6789
Contact:

Re: SVG Fonts possible yet in convert?

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

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 14 guests