Hi Chris,

Chris Bowditch wrote:
I have some SVG which displays incorrectly in Squiggle and in the PDF generated by the PDF transcoder.

By incorrectly you mean not the way you want it to? Or not the way the spec says it should.

The SVG represents a form with lines, boxes and text intermingled. I tried the SVG both with v1.5.1 and with the latest version, but a lot of the characters are overlapping one another.

Does your text have the 'text-length' property set?

The SVG makes use of CSS styles, and I thought maybe the problem was related to negative values for word-spacing and letter-spacing. However, changing them all to zero, didnt have mmuch affect. Then I noticed the SVG contained <svg:def> tags with <svg:font> and <svg:glyph> elements. So I thought that this may be the root cause of the problem, but removing the <svg:def> tag and all its children did not fix the problem, some characters still overlap adjacent ones?

Actually having an svg font should improve the situation as all compliant SVG renderers will use the same glyphs (as opposed to depending on platform fonts which may have different metrics).

Has anyone else seen this behaviour? I can supply the SVG if necessary but its about 115K.

Can you cut it down to just one or two text elements that show the problem? (most help because then I don't have to try and understand your SVG)

   If you can't reproduce it in a small test case you can also email
me directly although it will probably take longer for me to get
around to looking at it.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to