(I sent a copy of this note to [EMAIL PROTECTED], and filed bug 22713 (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22713)
The ttf file that shows the bug is attached to the bug
------------------------------------
I've been using your totally excellent java ttf parsing code and found a small bug in GlyfCompositeDescript.java that showed up recently. Here's the fix (pardon my emailer for wrapping 79 cols)
diff GlyfCompositeDescript.java /c/downloads/GlyfCompositeDescript.java
35,39c35,36
< GlyfDescript desc =
parentTable.getDescription(comp.getGlyphIndex(
));
< if (desc != null) {
< firstIndex += desc.getPointCount();
< firstContour += desc.getContourCount();
< }
---
> firstIndex += parentTable.getDescription(comp.getGlyphIndex()).getPointCount();
> firstContour += parentTable.getDescription(comp.getGlyphIndex()).getContourCount();
I've attached a ttf file that required this fix to your parser.
Much thanks and let me know if there's some easy way for me to get this intrgrated into a batik release.
Consider it done, however looking at the code it would appear that lots of other stuff will fail if any real work is done with the generated GlyfCompositeDescript. Do you have any idea why this doesn't die later? Does the ttf2svg not translate ligatures perhaps?
Anyway thanks for forwarding the patch.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]