Eric, I've just reproduced you problem. It's a Batik bug because the ArrayIndexOutOfBoundsException also happens in Squiggle (the Batik SVG Browser). Please send a bugreport to the batik team and include your SVG file.
You could probably get rid of the error if you rewrote your SVG, but I haven't figured out yet what triggers the bug. In org.apache.batik.gvt.text.GlyphLayout I've changed two lines near line 1360 and could get rid of the error: changed from: gv.getGlyphMetrics(numGlyphs-2) to: gv.getGlyphMetrics(numGlyphs-1) It always happend if only one glyph is in a GVTGlyphVector. But I don't know if this change has a bad influence on the output. When you submit the bug to Batik, you can include my analysis. Sorry that I can't help more. Too little knowledge of Batik. On 20.01.2003 19:08:14 fop wrote: > Please Help > I use FOP 0.20.5rc with j2sdk1.4.0_03 and i can't convert fo file with svg > (with text) to PDF with Text. > i made fonts metrics files without error and i added svgSTROKEStext entry > in userconfig.xml and i had opened arial.ttf font and saved it with a > truetypefont editor. > When i launched the command "fop -c conf\userconfig.xml -fo result.fo -pdf > result.pdf" , the PDF is generated but with line art text and i got this > error : <snip/> > java.lang.ArrayIndexOutOfBoundsException > at > org.apache.batik.gvt.font.AWTGVTGlyphVector.getGlyphMetrics(AWTGVTGlyphVector.java:392) Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
