Hi Adrian, with other ttf fonts works fine. Adrian Cumiskey schrieb: > Hi Joerg, > > I have just ran the same test and looked at the code and I believe > that it might be a problem with your ttf file. > > It looks like the ttf file could be clipped - the last instruction in > the ttf reader skips 4 * 4 bytes memory usage values which takes this > ttf file to the end of the file so I believe the exception thrown to > be correct behaviour. Have you tried converting a different ttf font > file? > > Cheers, > > Adrian. > > Joerg Heinrich wrote: >> Hello, >> I want use a Barcode font to create barcodes in my documents, I've >> started with >> the example examples/fo/advanced/barcode.fo . >> So I've got the 3of9barcode font file from: >> http://www.geocities.com/keith_dimmock/ >> And I tried to create the font metric with following command: >> >> java -cp >> /opt/fop/build/fop.jar:/opt/fop/lib/avalon-framework-4.2.0.jar:/opt/fop/lib/commons-logging-1.0.4.jar:/opt/fop/lib/commons-io-1.1.jar >> >> org.apache.fop.fonts.apps.TTFReader -d k3.ttf k3.xml >> TTF Reader for Apache FOP 0.93 >> >> Parsing font... >> Reading k3.ttf... >> Reading 10 dir tables >> dir tables: [cmap, hhea, OS/2, maxp, head, glyf, hmtx, name, loca, post] >> unit per em: 2048 >> Number of glyphs in font: 48 >> hhea.Ascender: 800 390 >> hhea.Descender: 0 0 >> Number of horizontal metrics: 2 >> Error while building XML font metrics file. >> java.io.EOFException: Reached EOF, file size=5104 offset=5104 >> at >> org.apache.fop.fonts.truetype.FontFileReader.seekSet(FontFileReader.java:86) >> >> at >> org.apache.fop.fonts.truetype.FontFileReader.seekAdd(FontFileReader.java:99) >> >> at >> org.apache.fop.fonts.truetype.FontFileReader.skip(FontFileReader.java:109) >> >> at >> org.apache.fop.fonts.truetype.TTFFile.readPostScript(TTFFile.java:854) >> at >> org.apache.fop.fonts.truetype.TTFFile.readFont(TTFFile.java:479) >> at >> org.apache.fop.fonts.apps.TTFReader.loadTTF(TTFReader.java:206) >> at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:161) >> >> If I try to use the metric file that's within the folder >> examples/fo/advanced >> I've got the following error: >> Failed to read font metrics file /opt/fop/fonts/k3.xml >> org.xml.sax.SAXException: Missing metrics-version attribute - please >> regenerate the font metrics file with a more recent version of FOP >> >> I'm using FOP Version 0.93 >> >> Can anyone help me? >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]