[xsl] Problem creating TTF metrics file - TTFReader FileNotFoundException

Subject: [xsl] Problem creating TTF metrics file - TTFReader FileNotFoundException
From: "tony schmidt" <tonyjamesschmidt@xxxxxxxxxxx>
Date: Wed, 15 Jun 2005 06:49:31 +0000
I have seen this topic mentioned elsewhere in this list, and the Apache FOP list, but have not found a satisfactory solution to the problem.

The basic idea is that I am trying to use a Garamond font with DocBook.

I am trying to create a TTF metrics file according to the instructions at: http://xml.apache.org/fop/fonts.html , but have not had any luck on either Windows XP or
Linux operating systems. Both produce the following error:


------------------------ BEGIN ERROR MESSAGE ----------------------------------------

TTF Reader v1.1.1

Reading Garamond.ttf...

Number of glyphs in font: 662
Creating xml font file...

Creating CID encoded metrics
Writing xml font file garamond.xml...

javax.xml.transform.TransformerException: java.io.FileNotFoundException: file:/mnt/hda4/apps/fop-0.20.5/garamond.xml (No such file or directory)
at org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:263)
at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:296)
at org.apache.fop.fonts.apps.TTFReader.writeFontXML(TTFReader.java:242)
at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:196)
Caused by: java.io.FileNotFoundException: file:/mnt/hda4/apps/fop-0.20.5/garamond.xml (No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:253)
... 3 more---------
java.io.FileNotFoundException: file:/mnt/hda4/apps/fop-0.20.5/garamond.xml (No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:253)
at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:296)
at org.apache.fop.fonts.apps.TTFReader.writeFontXML(TTFReader.java:242)
at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:196)
This font contains no embedding license restrictions


----------------------------------- END ERROR MESSAGE --------------------------------------

I am using the following command with fop-0.20.5 and j2sdk1.4.2_08:

----------------------------------- BEGIN COMMAND -----------------------------------------

java -cp build/fop.jar:lib/avalon-framework-cvs-20020806.jar:lib/xml-apis.jar:lib/xercesImpl-2.2.1.jar:lib/xalan-2.4.1.jar org.apache.fop.fonts.apps.TTFReader Garamond.ttf garamond.xml

---------------------------------- END COMMAND -------------------------------------------

Any help would be greatly appreciated.

Current Thread