I am trying to create the metrics file for the 3 of 9 Barcode font and when I run TTFReader I get the following output: TTF Reader v1.1.1 Reading 3of9.ttf... Number of glyphs in font: 218 Unicode cmap table not present java.util.NoSuchElementException: Vector Enumeration at java.util.Vector$1.nextElement(Unknown Source) at org.apache.fop.fonts.TTFFile.createCMaps(TTFFile.java:415) at org.apache.fop.fonts.TTFFile.readFont(TTFFile.java:404) at org.apache.fop.fonts.apps.TTFReader.loadTTF(TTFReader.java:181) at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:143) I am using the fop-0_20_1-dev version of fop. Could somebody please look into allowing the TTFReader to create the metrics for this font, as I am trying to use fop for reporting purposes and I require the report to have barcodes. Thanks PS - You can get a free copy of this font from http://www.netlabels.com/faq2/barcode.html
I have tried with a lot of different commercial and shareware Code 39 (3 of 9) Barcode fonts but they all have this problem. In some cases there is a EOF exception instead of "Unicode cmap table not present" and then No Such Element exception.
Hi there, I'm having the same problem. Someone is disussing this problem in the following newsgroup: http://marc.theaimsgroup.com/?l=fop-dev&m=103098230522738&w=2 It seems that one way to solve this problem for several .ttf files is to convert it in a .ttx file and then back again to .ttf through FootTools (Open Source software that you can download from http://sourceforge.net/projects/fonttools/ ). They say that by these transformations, some .ttf that previuosly had trouble to be used with TTFReader, has begun to work. I tried the same with the 3of9.ttf file, but the process to re-convert the .ttx file in .ttf file does NOT work. It stops giving out this message: C:\Programmi\TTX>ttx -s C:\Programmi\TTX\MieiFiles\3OF9Gio.ttx C:\Programmi\TTX\ MieiFiles\3OF9Gio.ttf Compiling "C:\Programmi\TTX\MieiFiles\3OF9.ttx" to "C:\Programmi\TTX\MieiFile s\3OF9.ttf"... Parsing 'GlyphOrder' table... Parsing 'OS/2' table... Parsing 'PCLT' table... Parsing 'cmap' table... Parsing 'cvt ' table... Parsing 'fpgm' table... Parsing 'glyf' table... Parsing 'head' table... Traceback (most recent call last): File "fontTools\ttx.pyc", line 243, in main File "fontTools\ttx.pyc", line 228, in process File "fontTools\ttx.pyc", line 163, in ttCompile File "fontTools\ttLib\__init__.pyc", line 272, in importXML File "fontTools\ttLib\xmlImport.pyc", line 134, in importXML File "fontTools\ttLib\xmlImport.pyc", line 24, in parse File "fontTools\ttLib\xmlImport.pyc", line 44, in parseFile File "fontTools\ttLib\xmlImport.pyc", line 107, in endElementHandler File "fontTools\ttLib\tables\_h_e_a_d.pyc", line 77, in fromXML File "fontTools\ttLib\tables\_h_e_a_d.pyc", line 121, in parse_date OverflowError: mktime argument out of range (Hit any key to exit) Let me know for any news!!! Cheers! Ale
The problem apparently is in your font. So either fix it by third-party font editor or try different one. For instanse this free bar code font works fine: http://www.squaregear.net/fonts/free3of9.shtml.
batch transition to closed remaining pre-FOP1.0 resolved bugs