java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
Hi,
I am using FOP to convert an fo file to pdf. To enable usage of certain fonts a metric file ought to be created. To do this, the command given below needs to be executed.
java -cp build\fop.jar;lib\xml-apis.jar;lib\xalan-2.3.1.jar;lib\ba
tik.jar org.apache.fop.fonts.apps.TTFReader C:\fonts\Symbol.ttf
C:\symbol.xml
But I get this exception.
TTF Reader v1.1.1
Reading C:\fonts\Symbol.ttf...
Number of glyphs in font: 192
Unicode cmap table not present
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:507)
at java.util.ArrayList.get(ArrayList.java:324)
at org.apache.fop.fonts.TTFFile.createCMaps(TTFFile.java:449)
at org.apache.fop.fonts.TTFFile.readFont(TTFFile.java:439)
at org.apache.fop.fonts.apps.TTFReader.loadTTF(TTFReader.java:222)
at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:184)
What could be the problem? This does not arise for fonts like arial or times new roman. I get the same error for Webdings, Wingdings, OCR. .. How can this be resolved? Please help.

