You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Rafal Maczewski <fo...@pa70.ziebice.sdi.tpnet.pl> on 2001/04/20 00:30:45 UTC

SVGRender.java patch

Hi,

I found a bug in SVGRenderer.java and I'm sending a patch for it.
When I am using embedded font in <svg:text> FOP crashes with ERROR:NULL,
e.g.
    <fo:block>
      <fo:instream-foreign-object>
         <svg:svg width="13cm" height="17.78cm">
             <svg:text x="8mm" y="127.5mm" style="font-size: 10pt;
font-family: Arial">Some text</svg:text>
         </svg:svg>
     </fo:instream-foreign-object>
  </fo:block>

The reason is that characters are not mapped into font subset before
rendering by SVGRenderer. I modified the SVGRenderer to handle texts in a
similar way PDFRenderer does.

Rafal