Thomas DeWeese wrote:
Oh I see. Forgot to mention that although removing the custom glyph definitions did not fix the problem it did improve the situation.
This is odd, can you send the very top of the font defn? Say the font element and one or two of the glyph elements?
<svg:defs>
<svg:font horiz-adv-x="0">
<svg:font-face font-family="fnt0" units-per-em="2048" ascent="905" descent="-211"/>
<svg:missing-glyph horiz-adv-x="0"/>
<svg:glyph unicode=" " horiz-adv-x="569" d=""/>
<svg:glyph unicode="$" horiz-adv-x="1138" d="M510,-211L510,-31Q375,-14,290,29Q206,73,144,170Q83,267,73,407L254,441Q275,296,328,228Q404,132,510,121L510,694Q399,715,283,780Q197,828,150,913Q104,998,104,1106Q104,1298,240,1417Q331,1497,510,1515L510,1601L616,1601L616,1515Q773,1500,865,1423Q983,1325,1007,1154L821,1126Q805,1232,754,1288Q704,1345,616,1363L616,844Q752,810,796,791Q880,754,933,701Q986,648,1014,575Q1043,502,1043,417Q1043,230,924,105Q805,-20,616,-29L616,-211L510,-211M510,1365Q405,1349,344,1281Q284,1213,284,1120Q284,1028,335,966Q387,904,510,867L510,1365M616,121Q721,134,789,212Q858,290,858,405Q858,503,809,562Q761,622,616,669L616,121"/>
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:
Ohh, well it's absolutely positioning the text, if there is any difference in the glyphs you will get all sorts of trouble. I believe you can turn off the use of absolute positioning in Illustrator although the exact set of text options escapes me at the moment (you might Google it, it's something like tracking or the like).
Thanks, it seems pretty obvious now youve told me!!
Did you do anything that might cause the CSS classes to not be defined (say by removing a 'style' element)? If say the font-size differs this will easily cause them to run together.
The full scenario is; one of our users pointed out that this SVG works with XEP and not with FOP. The CSS references the Arial font family. XEP probably uses the Font metrics defined in its config file, whilst the PDF Transcoder and Batik are probably using the Java AWT system, which is unlikely to match the metrics that Adobe Illustrator and XEP are working with.
Thanks for your help,
Chris
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
