Converting SVG with custom fonts to PNG using ImageMagick

后端 未结 4 1799
误落风尘
误落风尘 2021-01-06 06:07

I\'m converting SVG\'s to PNG using ImageMagick and all works like a charm until I tried adding custom fonts using @font-face and then in the SVG file. In Batik this worked

4条回答
  •  时光说笑
    2021-01-06 06:12

    Try rsvg-convert (a command line program) provided by librsvg2 package.

    I have the same problem with ImageMagick on Amazon Linux (but not on my Ubuntu desktop). I think the SVG handling of the ImageMagick is rather poor. It does not recognize "display: none" style property correctly.

提交回复
热议问题