Hi
I'm trying to add wingding font to fop and face a problem. I'm afraid I have not fully understood how it is supposed to work, anyway maybe someone will help.
So I read the doc on xml.apache.org/fop/fonts.html and wrote the following command line to generate the font metrics :
 
java -cp build\fop.jar;lib\xercesImpl-2.0.1.jar;lib\xml-apis.jar;lib\xalan-2.3.1.jar;lib\batik.jar org.apache.fop.fonts.apps.TTFReader c:\winnt\fonts\wingding.ttf ttfwingding.xml
 
The response is :
TTF Reader v1.1.1
 
Reading c:\winnt\fonts\wingding.ttf...
 
Number of glyphs in font: 226
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)
Anyone knows what should be done ?
 
Note that following the example in doc, the command line should be :  
java -cp ...  org.apache.fop.fonts.apps.TTFReader c:\winnt\fonts\wingding.ttf c:\winnt\fonts\wingding.ttf ttfwingding.xml
But this results in a help message showing TTFReader calls options
Any explanation greatly appreciated.
Florence

Reply via email to