ImageMagick does not properly displays TEXTS in SVG files when percentage is used to define position.
Example:
If the file tmp.svg is as shown bellow, 'display tmp.svg' will draw correctly both rectangles, but the text will be placed at (0,0)
===============tmp.svg===========
Code: Select all
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<svg width='500px' height='500px'>
<rect x='0%' y='0%' width='100%' height='100%' style="fill:rgb(255,255,255);stroke-width:3;stroke:rgb(0,0,0)"/>
<rect x='10%' y='10%' width='10%' height='10%' style="fill:rgb(255,0,0);stroke-width:3;stroke:rgb(0,0,0)"/>
<text x='50%' y='50%' text-anchor='middle'>Some Text</text>
</svg>
I am using ImageMagick 6.8.9-9 on Ubuntu 16.04
Thanks in advance
Oscar Duarte