J.Pietschmann wrote: > >> java.lang.RuntimeException: Cannot load font: failed to create Source >> from >> metrics file >> jar:file:/var/lib/ [snip] > The embedded file URL ist malformed, maybe the recursive URL resolver > doesn't like this. Try jar:file:///var/lib/... and check whether this > helps. >
Now some more information. To ease the reading, I replaced the path to the JAR file with "path"! The URL I'm setting as baseURL and fontBaseURL is jar:file:/path/CMBilling-0.0.1-SNAPSHOT.jar!/layouts/LIVINGNET_2008_06_05/ This is the URL I'm getting from this.getClass().getClassLoader().getResource(baseURLString); for the argument "layouts/LIVINGNET_2008_06_05/", so I think that this should be a valid URL. And as already written: Reading the configuration and including images works with this URL. But I tried it with the suggested URL, unfortunately with the same error: 2008-07-09 09:45:06,928 [btpool0-0] ERROR org.apache.fop.fo.FOTreeBuilder.fatalError(FOTreeBuilder.java:229) - javax.xml.transform.TransformerException: java.lang.RuntimeException: Cannot load font: failed to create Source from metrics file jar:file:///path/CMBilling-0.0.1-SNAPSHOT.jar!/layouts/LIVINGNET_2008_06_05/fonts/ttfnewsgothic.xml So what else can I do? -- View this message in context: http://www.nabble.com/Embedding-fonts-tp18238271p18357954.html Sent from the FOP - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]