Thank you for your reply; unfortunately I got the same output when giving TTFReader the '-enc ansi' option.
<[EMAIL PROTECTED]>$ java -cp ~/src/fop-0.20.5/build/fop.jar:~/src/fop-0.20.5/lib/avalon-framework-cvs-20020806.jar:~/src/fop-0.20.5/lib/xercesImpl-2.2.1.jar:~/src/fop-0.20.5/lib/xalan-2.4.1.jar org.apache.fop.fonts.apps.TTFReader -enc ansi ~/fonts/OCR/OCR-A.TTF ~/fonts/OCR/OCR.xml TTF Reader v1.1.1 Reading /home/mpartridge/fonts/OCR/OCR-A.TTF... Number of glyphs in font: 115 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) I've been searching for ways to generate a Unicode cmap table and I've found tools to translate cmap tables but nothing to create one in an existing font. If anyone knows of an app that can do this, please let me know. Mike Partridge -----Original Message----- From: J.Pietschmann [mailto:[EMAIL PROTECTED] Sent: Sat 10/30/2004 12:03 PM To: [EMAIL PROTECTED] Cc: Subject: Re: problem converting TTF using TTFReader Partridge, Michael wrote: > I get the following output when attempting to generate a font metrics file > from an OCR true type font: ... > 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) ... > Is this a problem with the font file itself? Yes. It is common for OCR and barcode fonts to omit the cmap, for whatever reason. Try the telliung TTFReader to use winansi encoding, assuming the character range in the font fits the encodable range. J.Pietschmann --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
<<winmail.dat>>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]