Re: SingleByteFont Patch

2014-07-01 Thread Pascal Sancho
Hi, can you file in entries in Jira, please? see our HowTo [1] submitting patches. [1] http://xmlgraphics.apache.org/fop/dev/#patches 2014-07-01 12:36 GMT+02:00 Kai Hofmann : > > Dear all, > > looks like there is another bug based on the before mentioned problem: > > FOPGVTGlyphVector: > >pri

Aw: SingleByteFont Patch

2014-07-01 Thread Kai Hofmann
Dear all,   looks like there is another bug based on the before mentioned problem:   FOPGVTGlyphVector:      private void buildBoundingBoxes() {     boundingBoxes = new Rectangle2D[glyphs.length];     for (int i = 0; i < glyphs.length; i++) {     Rectangle bbox = fontMetrics.getBou

SingleByteFont Patch

2014-07-01 Thread Kai Hofmann
Dear all,   I found a small bug in SingleByteFont - please see attached patch - in getBoundingBox: if (idx >= 0 && idx < boundingBoxes.length) might result in a null pointer exception, when getBoundingBox is called before setBoudning box. So repleace with: if (boundingBoxes != null && idx >=