foreignObject

Jun 19, 2012 at 4:24 PM

Hi. I have an SvgDocument that looks like this

<svg>

  <svg>   <g>...</g></svg>

   <svg>

      <switch>

         <foreignObject ...><p xmlns="...xhtml" style="font-size: 12">text here</p></foreignObject>

         <text>foreignObject not supported </text>

       </switch>

<svg> 

When I view the document in a browser (Chrome, FireFox) the document renders fine and I see the text in the position at the correct size.

If I try to use SvgDocument.Draw() to render this to a bitmap the text appears very very small.

Is there a way to get the Draw() method output to look like my browser output?