CairoSVG
CairoSVG copied to clipboard
em font-size text does not support inner element
This issue look related to #168.
When a <text> element with font-size specified in em contains inner element, conversion does not works properly.
Example:
<svg width="580" height="400" xmlns="http://www.w3.org/2000/svg">
<g>
<title>background</title>
<rect fill="#fff" id="canvas_background" height="402" width="582" y="-1" x="-1"/>
<g display="none" overflow="visible" y="0" x="0" height="100%" width="100%" id="canvasGrid">
<rect fill="url(#gridpattern)" stroke-width="0" y="0" x="0" height="100%" width="100%"/>
</g>
</g>
<g>
<text x="50" y="100" font-family="Arial" font-size="5em">without tspan</text>
<text x="50" y="200" font-family="Arial" font-size="5em"><tspan/>with tspan</text>
</g>
</svg>
CairoSVG output:

Expected (in Chromium):
