On a Win32 system, I've found with FOP 0.93 that the "Generate a FOP
font metrics file" instructions for FOP 0.20.5 in "DocBook XSL: The
Complete Guide" don't work "as is":

java -cp "../fop-0.20.5/build/fop.jar;\
../fop-0.20.5/lib/xercesImpl.jar;../fop-0.20.5/lib/xalan.jar" \
org.apache.fop.fonts.apps.TTFReader \
-enc ansi \
/WINDOWS/FONTS/GARA.TTF  lib/garamond.xml

Even when updating the directory names this produces the error:

Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/commons/logging/LogFactory

Adding the Commons Logging library, Commons IO library, and Serializer
library seems to resolve this. So updating the directory names and
version numbers and adding the new jar files gives us:

java -cp "../fop-0.93/build/fop.jar;\
../fop-0.93/lib/xercesImpl-2.7.1.jar;\
../fop-0.93/lib/xalan-2.7.0.jar;\
../fop-0.93/lib/commons-logging-1.0.4.jar" \
../fop-0.93/lib/commons-io-1.1.jar;
../fop-0.93/lib/serializer-2.7.0.jar
org.apache.fop.fonts.apps.TTFReader
-enc ansi \
/WINDOWS/FONTS/GARA.TTF  lib/garamond.xml

Just in case someone else finds this useful...

TGM

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to