[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Problem creating TTF metrics file - TTFReader FileNot

Subject: Problem creating TTF metrics file - TTFReader FileNotFoundException
From: "tony schmidt" <tonyjamesschmidt@xxxxxxxxxxx>
Date: Wed, 15 Jun 2005 06:49:31 +0000
ttfreader
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.