>>>>> "KL" == Keiron Liddle <[EMAIL PROTECTED]> writes:

KL> I get the following stack trace when converting the attached svg
KL> file.  This happens when using the transcoder (in this case the
KL> pdf but it also occurs with the png).  The error occurs with the
KL> current cvs but works ok with batik 1.0.

KL> DOes anyone know what the problem might be?

KL> java.lang.NullPointerException at
KL> org.apache.batik.gvt.text.GlyphLayout.doExplicitGlyphLayout(GlyphLayout.java:953)
KL> at
KL> org.apache.batik.gvt.text.GlyphLayout.<init>(GlyphLayout.java:93)
KL> at

    I don't know the root cause, I hacked the following to get around
it temporarily, however I am 100% _POSITIVE_ this isn't the correct
solution, that will have to wait for the Bella and/or Dean to wake up :)

    Has anyone else noticed a marked increase in memory usage when
dealing with text?

Index: sources/org/apache/batik/gvt/text/GlyphLayout.java
===================================================================
RCS file: /home/cvs/xml-batik/sources/org/apache/batik/gvt/text/GlyphLayout.java,v
retrieving revision 1.15
diff -r1.15 GlyphLayout.java
953,954c953,957
<             glyphOrientationAngle = 
(int)((Float)aci.getAttribute(GVTAttributedCharacterIterator.
<                                            
TextAttribute.VERTICAL_ORIENTATION_ANGLE)).floatValue();
---
>             Float angle = (Float)aci.getAttribute
>                 (GVTAttributedCharacterIterator.
>                  TextAttribute.VERTICAL_ORIENTATION_ANGLE);
>             if (angle != null)
>                 glyphOrientationAngle = (int)(angle.floatValue());

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

Reply via email to