Forum How do I...?

SVG font-size

bmedien
Hi,

if i use Svg, the attributes font-size, is ignored by prince. The text is always on the box size scaled.

Can you help me?? Or is this a bug??

Regards
Thomas
mikeday
The font-size property should work in SVG, can you paste a small example of the problem?
bmedien
Ok, mikeday,
I have found that the svg element has to be in a XML document. I have worked with Html files!!!

So if I rename the file in .xml it works!! but not with .html.
is that possible?

thanks a lot
Thomas
mikeday
Yes, this can be an issue: SVG is technically not valid within HTML. You can use "-i xml" to force Prince to parse files as XML, but this does require that the files are well-formed, with correct tag nesting and quoted attributes.