Hi All,

I am trying to use font OCR B1 in the pdf. But when I generate font config file, following error message occured.

C:\fop\fop-0.20.3> java -cp build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\
xerces-1.2.3.jar;lib\avalon-framework-4.0.jar;lib\logkit-1.0.jar;lib\jimi-1.0.ja
r org.apache.fop.fonts.apps.TTFReader Sadvocrbn.ttf Sadvocrbn.xml
TTF Reader v1.1.1

Reading Sadvocrbn.ttf...

Number of glyphs in font: 128
java.io.EOFException: Reached EOF, file size=40744 offset=103644
        at org.apache.fop.fonts.FontFileReader.seek_set(FontFileReader.java:78)
        at org.apache.fop.fonts.TTFFile.readCMAP(TTFFile.java:217)
        at org.apache.fop.fonts.TTFFile.readFont(TTFFile.java:386)
        at org.apache.fop.fonts.apps.TTFReader.loadTTF(TTFReader.java:181)
        at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:143)

 

I got advice from one friend, he said because the ttf (Sadvocrbn.ttf) is a symbol encoding file, I should convert it to ansi encoding file.

But I can find tool to do that. Does anybody have any idea on this?

Thanks

Gordon



Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup

Reply via email to