Two FOP variants have been tried out by us: the FOP "stand-alone" variant [FOP_1] to be downloaded from http://xml.apache.org/dist/fop/, and the FOP variant included in the Cocoon 2 package [FOP_2].
To our knowledge, and after extensive testing, a metric file for any specific TTF font can be generated only with the use of FOP_1. Using the same way to call the libraries (jars) included in Cocoon 2 [FOP_2] we could not achieve any positive results. The process was stopped every time, and the following error message was issued: java.lang.NoClassDefFoundError: org/w3c/dom/ranges/DocumentRange at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at org.apache.fop.fonts.apps.TTFReader.constructFontXML(TTFReader.java:225) at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:145) Exception in thread "main" Question: Is it correct to deduce that embedding fonts through XSL-FO is possible in connection with the FOP stand-alone version, but not in connection with FOP _and_ Cocoon? If not, can you find any explanation for this phenomenon? What must we do in order to get fonts embedded and, as a "by-product", Unicode output for the embedded font(s)? Matthias --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>