1

Under CF9, I'm converting SVGs to PNGs using the Batik (1.7) transcoder. The SVGs contain text using non-standard fonts which I've installed under Windows on the server, but which are being replaced with fallback system fonts during the Batik conversion. I've tried both TTF and OTF fonts and the suggestions here: http://webmonkeyswithlaserbeams.wordpress.com/2009/04/29/custom-fonts-in-coldfusion/. Embedding the fonts in the SVGs isn't a viable option due to parsing performance problems in another area of the application.

Zane T.
  • 102
  • 8

2 Answers2

0

I found that Batik renders fonts well if you specify a font-family in your SVG that is registered with the Grahpics environment.

Unregistering, however, does not seem to work.

Ticket: Unregister font with GraphicsEnvironment?

Community
  • 1
  • 1
RobertG
  • 1,550
  • 1
  • 23
  • 42
-1

You have to embed the svg font definations inside your svg. There is no other way.

  • These links I found say "There is, too!" http://stackoverflow.com/questions/17993130/svg-to-png-text-not-showing-properly-arial-font/17993932#17993932 http://batik.2283329.n4.nabble.com/Batik-1-7-Transcoder-Chinese-Font-td2977384.html – RobertG Oct 10 '14 at 10:40