Hallo,

Hi Carsten,

    This looks to me like a corrupt font on the machine.

I changed the SVG file to use only a single Font and tested it with the following Fonts (font-family:Courier for example):

Times New Roman
Helvetica
Bitstream Vera Sans
Arial
Courier

it resulted in the same Exception.


"Carsten S." <[EMAIL PROTECTED]> wrote on 07/07/2006 06:31:10 AM:

> I'm using Batik on several Win2K machines (JRE 1.5.0_03) on one machine i > get the attached Exception when starting the SVG -> PDF Transcoder, it > doesn't happen on the other machines with the same JRE. > > Does anyone knows why this happens and if there's a workaround to avoid this > problem?
> > java.lang.ArrayIndexOutOfBoundsException: 512
>    at sun.font.CMap$CMapFormat4.getGlyph(Unknown Source)
>    at sun.font.TrueTypeGlyphMapper.charToGlyph(Unknown Source)
>    at sun.font.CharToGlyphMapper.canDisplay(Unknown Source)
>    at sun.font.Font2D.canDisplay(Unknown Source)
>    at java.awt.Font.canDisplay(Unknown Source)
>    at sun.font.FontResolver.getIndexFor(Unknown Source)
>    at sun.font.FontResolver.getFontIndex(Unknown Source)
>    at sun.font.FontResolver.getFontIndex(Unknown Source)
>    at java.awt.font.TextLine.getFontAtCurrentPos(Unknown Source)
>    at java.awt.font.TextLayout.standardInit(Unknown Source)
>    at java.awt.font.TextLayout.<init>(Unknown Source)
> at org.apache.batik.gvt.text.BidiAttributedCharacterIterator.<init>(Unknown Source) > at org.apache.batik.gvt.renderer.StrokingTextPainter.computeTextRuns(Unknown Source) > at org.apache.batik.gvt.renderer.StrokingTextPainter.getTextRuns(Unknown Source) > at org.apache.batik.gvt.renderer.StrokingTextPainter.getBounds2D(Unknown Source)
...



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

Reply via email to