If you want to turn text-kerning off you should set the kerning from "Auto" to "0". You can do that in the "Type"--> "Character" panel in the extended options next to the icon "A|V" with the horizontal arrows.
Hope this helps, Andreas
Chris Bowditch wrote:
Thomas DeWeese wrote:
Hi Chris,
Thanks for the quick reply.
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.
I mean the result was not as expected. The SVG was generated by Adobe Illustrator (I think) or similar tool. It displays correctly in that tool.
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?
No.
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).
Oh I see. Forgot to mention that although removing the custom glyph definitions did not fix the problem it did improve the situation.
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)
I have managed to narrow problem right down. It seems to be caused by tspan with lots of values in the x. Sample that exhibits behaviour below:
<svg:g transform="matrix(1 0 0 -1 0 792)">
<svg:text transform="matrix(1 0 0 -1 96 681.3)">
<svg:tspan x="0,6.20844,8.86578,10.6373,15.0742,19.5111,23.948,26.1664,31.0422,32.8138,37.2506,41.6875,46.1244,50.1144,51.886,56.3228,58.0944,60.3128,64.7497,66.9682,71.405,73.6235,79.385,81.6035,83.8219,86.0404,88.2588,92.6957,97.1326,101.569,106.006,110.443,112.662,117.537,120.195,124.632,129.069,133.059,134.83,136.602,141.039,143.257,149.019,153.455,155.674,157.892,160.111,165.433,169.87,171.642,173.86,178.297,180.516,184.952,189.389,193.826,198.263,200.482,205.804,210.241,214.678,216.896,221.333,223.552,225.323,229.76,231.532,235.969,238.187,244.834,247.053,249.271,253.708,258.145,262.582,267.019" y="0" class="ps02 ps12 ps22">XXXXX</svg:tspan>
</svg:text>
</svg:g>
Thanks,
Chris
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
