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.
-Eric
--
Eric Bloch Laszlo Systems, Inc. 1040 Mariposa Street, SF, CA 94107
voice: 415.241.2721 fax: 415.865.2914 email: [EMAIL PROTECTED]
---
Laszlo allows Behr to deliver a breakthrough experience with ColorSmart by BEHR application.
http://www.behr.com
-- Eric Bloch Laszlo Systems, Inc. 1040 Mariposa Street, SF, CA 94107
voice: 415.241.2721 fax: 415.865.2914 email: [EMAIL PROTECTED]
---
Laszlo allows Behr to deliver a breakthrough experience with ColorSmart by BEHR application.
http://www.behr.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]