When executing the following with java 1.4 on Windows NT (SP6) with any FOP version from 20.3 to 20.5rc, the true type font produces this error. This only happens with certain true type files, while others are fine. This specific example is using the Frutiger true type font file. For only the purpose of reproducing the error, the true type file can be download from www.syrebral.com/files/Ftr_____.ttf E:\fop\fop-0.20.5rc>java -cp build\fop.jar;lib\xercesImpl-2.2.1.jar;lib\xml-apis .jar;lib\xalan-2.4.1.jar;lib\batik.jar org.apache.fop.fonts.apps.TTFReader fonts \Ftr_____.ttf ftrttf__.xml TTF Reader v1.1.1 Reading fonts\Ftr_____.ttf... Number of glyphs in font: 229 java.lang.ArrayIndexOutOfBoundsException at org.apache.fop.fonts.TTFFile.readPostscript(TTFFile.java:739) at org.apache.fop.fonts.TTFFile.readFont(TTFFile.java:380) at org.apache.fop.fonts.apps.TTFReader.loadTTF(TTFReader.java:178) at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:140)
Bug is fixed in both the maintenance branch and redesign. Reason for the bug: Reserved name indexes were not ignored. You will probably get some log messages with this font but they can be safely ignored.
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed